From 1c278df42488ec1ffb78efab0f90d556bb3f79b3 Mon Sep 17 00:00:00 2001 From: Brad Dunbar Date: Tue, 7 Oct 2025 10:42:15 -0400 Subject: [PATCH] [Glitch] Resolve typescript eslint warning Port c578a0cb74bdc6492bed58007f8b7971eef43e30 to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/polyfills/index.ts | 2 +- app/javascript/flavours/glitch/reducers/modal.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/javascript/flavours/glitch/polyfills/index.ts b/app/javascript/flavours/glitch/polyfills/index.ts index 0ff0dd7269..1abfe0a935 100644 --- a/app/javascript/flavours/glitch/polyfills/index.ts +++ b/app/javascript/flavours/glitch/polyfills/index.ts @@ -19,7 +19,7 @@ export function loadPolyfills() { return Promise.all([ loadIntlPolyfills(), // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- those properties might not exist in old browsers, even if they are always here in types - needsExtraPolyfills && importExtraPolyfills(), + needsExtraPolyfills ? importExtraPolyfills() : Promise.resolve(), loadEmojiPolyfills(), ]); } diff --git a/app/javascript/flavours/glitch/reducers/modal.ts b/app/javascript/flavours/glitch/reducers/modal.ts index 280695ead7..7144cb4d22 100644 --- a/app/javascript/flavours/glitch/reducers/modal.ts +++ b/app/javascript/flavours/glitch/reducers/modal.ts @@ -41,7 +41,7 @@ const popModal = ( modalType === state.get('stack').get(0)?.get('modalType') ) { return state - .set('ignoreFocus', !!ignoreFocus) + .set('ignoreFocus', ignoreFocus) .update('stack', (stack) => stack.shift()); } else { return state;