Skip to content

Commit 60afc6f

Browse files
committed
fix: enhance migration logging and update onboardingCompleted state during preferences migration
1 parent 10498ab commit 60afc6f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/stores/preferences.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,12 @@ export const useUserPreferences = create(
239239
const state = persistedState as unknown as UserPreferencesState &
240240
UserPreferencesStoreActions
241241
if (version === 0) {
242-
console.log('Migrating preferences_storage to version 1')
242+
console.log('Migrating preferences_storage to version 1', state)
243+
244+
return {
245+
...state,
246+
onboardingCompleted: true,
247+
}
243248
}
244249
return state
245250
},

0 commit comments

Comments
 (0)