diff --git a/src/features/onboarding/steps/step-preferences.tsx b/src/features/onboarding/steps/step-preferences.tsx index 7d94b441..ebd9aa46 100644 --- a/src/features/onboarding/steps/step-preferences.tsx +++ b/src/features/onboarding/steps/step-preferences.tsx @@ -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,