Skip to content

Commit 14c8824

Browse files
authored
fix: use proper state in system theme (coder#10090)
1 parent fa0a597 commit 14c8824

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

site/src/pages/WorkspacePage/WorkspaceReadyPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export const WorkspaceReadyPage = ({
9898
...templateVersion(workspace.template_active_version_id),
9999
enabled: workspace.outdated,
100100
});
101-
const systemTheme = useState(() => {
101+
const [systemTheme] = useState(() => {
102102
if (typeof window.matchMedia === "undefined") {
103103
// Default to dark mode!
104104
return "dark";

0 commit comments

Comments
 (0)