mirror of
https://github.com/Portabase/portabase.git
synced 2026-07-14 11:16:13 +02:00
fix(onboarding): persist theme to db on selection in StepPreferences
This commit is contained in:
@@ -51,7 +51,8 @@ export const StepPreferences = () => {
|
||||
const selectTheme = async (theme: ThemeKey) => {
|
||||
// Apply immediately to the UI
|
||||
setTheme(theme);
|
||||
//mettre à jour aussi en db!
|
||||
// Persist to DB so it survives page reload
|
||||
await authClient.updateUser({ theme });
|
||||
await updateContext({
|
||||
flowData: {
|
||||
...state?.context.flowData,
|
||||
|
||||
Reference in New Issue
Block a user