Increase theme sync delay to 2 seconds

Co-authored-by: shakespeare.diy <assistant@shakespeare.diy>
This commit is contained in:
shakespeare.diy
2026-02-18 03:35:25 -06:00
parent 1079799eb7
commit e4cb3fd10e
+2 -2
View File
@@ -21,13 +21,13 @@ export function useTheme(): { theme: Theme; setTheme: (theme: Theme) => void } {
theme,
}));
// Sync to encrypted storage after a delay to let theme apply first
// Sync to encrypted storage after 2 seconds to let theme fully apply
if (user) {
setTimeout(() => {
updateSettings.mutateAsync({ theme }).catch((error) => {
console.error('Failed to sync theme to encrypted storage:', error);
});
}, 500);
}, 2000);
}
}
}