fix: add page reload to apply theme changes
This commit is contained in:
1 parent
58480cd630
commit
6b2d716cc4
1 file changed
+5
@@ -49,6 +49,11 @@ export default function SettingsPage({ userEmail }: SettingsPageProps) {
|
||||
html.style.colorScheme = 'light';
|
||||
}
|
||||
}
|
||||
|
||||
// Force page reload to apply theme
|
||||
setTimeout(() => {
|
||||
window.location.reload();
|
||||
}, 500);
|
||||
};
|
||||
|
||||
return (
|
||||
|
||||
Reference in new issue
Block a user