Skip to content

Commit 0559a9e

Browse files
committed
fix(theme): give empty object incase theme is undef
1 parent bf74b7e commit 0559a9e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/stories/ThemeUtility.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export const StorybookThemeProvider = (props: {
1313
const darkMode = useDarkMode(false);
1414
const theme = providedTheme ?? defaultTheme;
1515
return (
16-
<StyledThemeProvider theme={darkMode.value ? theme.dark : theme.light}>
16+
<StyledThemeProvider theme={(darkMode.value ? theme.dark : theme.light) ?? {}}>
1717
{children}
1818
</StyledThemeProvider>
1919
);

0 commit comments

Comments
 (0)