Resolve typescript eslint warning (#36314)

This commit is contained in:
Brad Dunbar 2025-10-07 10:42:15 -04:00 committed by GitHub
commit c578a0cb74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 157 additions and 5 deletions

View file

@ -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(),
]);
}

View file

@ -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;