diff --git a/src/lib/util/RichDisplay.ts b/src/lib/util/RichDisplay.ts index 6d48350910..98b070d04a 100644 --- a/src/lib/util/RichDisplay.ts +++ b/src/lib/util/RichDisplay.ts @@ -91,13 +91,15 @@ export class RichDisplay { // To maintain emoji order, we will delete from rather than insert according to options - if (!options.firstLast ?? true) { + // eslint-disable-next-line @typescript-eslint/no-extra-parens + if (!(options.firstLast ?? true)) { this._emojis.delete(ReactionMethods.First); this._emojis.delete(ReactionMethods.Last); } - - if (!options.jump ?? true) this._emojis.delete(ReactionMethods.Jump); - if (!options.stop ?? true) this._emojis.delete(ReactionMethods.Stop); + // eslint-disable-next-line @typescript-eslint/no-extra-parens + if (!(options.jump ?? true)) this._emojis.delete(ReactionMethods.Jump); + // eslint-disable-next-line @typescript-eslint/no-extra-parens + if (!(options.stop ?? true)) this._emojis.delete(ReactionMethods.Stop); } /**