Skip to content

Commit bf4866d

Browse files
fix: PR suggestion
Co-authored-by: Willow (GHOST) <ghostdevbusiness@gmail.com>
1 parent c1f5529 commit bf4866d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.storybook/preview.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ globalThis.defineOgImageComponent = fn()
2121
// Subscribe to locale changes from storybook-i18n addon (once, outside decorator)
2222
let currentI18nInstance: any = null
2323
addons.getChannel().on('LOCALE_CHANGED', (newLocale: string) => {
24-
if (currentI18nInstance) {
25-
currentI18nInstance.setLocale(newLocale)
26-
}
24+
currentI18nInstance?.setLocale(newLocale)
2725
})
2826

2927
const preview: Preview = {

0 commit comments

Comments
 (0)