diff --git a/core/src/base/ThemeContext.tsx b/core/src/base/ThemeContext.tsx index e574051..c0937e5 100644 --- a/core/src/base/ThemeContext.tsx +++ b/core/src/base/ThemeContext.tsx @@ -86,7 +86,7 @@ export const useTheme = () => useContext(ThemeContext); export const ThemeProvider: React.FC = ({ theme, children }) => { const colorScheme = useColorScheme(); - const value = useMemo(() => (theme ?? colorScheme === "dark" ? darkTheme : defaultTheme), [colorScheme, theme]); + const value = useMemo(() => (theme ? theme : colorScheme === "dark" ? darkTheme : defaultTheme), [colorScheme, theme]); return {children}; };