Skip to content

Commit 8a4fd52

Browse files
authored
replace 1 ternary operator with nullish coalescing operator (#2323)
1 parent 3fd094c commit 8a4fd52

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/appWithTranslation.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,7 @@ export const appWithTranslation = <Props extends NextJsAppProps>(
7979
}
8080

8181
const { initialI18nStore } = _nextI18Next || {}
82-
const resources = configOverride?.resources
83-
? configOverride.resources
84-
: initialI18nStore
82+
const resources = configOverride?.resources ?? initialI18nStore
8583

8684
if (!locale) locale = userConfig.i18n.defaultLocale
8785

0 commit comments

Comments
 (0)