Commit 5873fa1c authored by tom's avatar tom

[skip ci] fix error with color mode cookie

parent 5b0a93db
......@@ -7,7 +7,7 @@ import SettingsSample from './SettingsSample';
import { COLOR_THEMES } from './utils';
const SettingsColorTheme = () => {
const { setColorMode, colorMode } = useColorMode();
const { setColorMode } = useColorMode();
const [ activeHex, setActiveHex ] = React.useState<string>();
......@@ -35,7 +35,7 @@ const SettingsColorTheme = () => {
return window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light';
}
return colorMode;
return cookieColorMode;
})();
const colorModeThemes = COLOR_THEMES.filter(theme => theme.colorMode === nextColorMode);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment