Skip to content

Commit

Permalink
[skip ci] fix error with color mode cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
tom2drum committed Apr 1, 2024
1 parent 5b0a93d commit 5873fa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/snippets/topBar/settings/SettingsColorTheme.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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>();

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit 5873fa1

Please sign in to comment.