Skip to content

Commit adc4681

Browse files
committed
fix: add occupation field to user preferences state and initialize from onboarding result
1 parent 53f53e0 commit adc4681

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/stores/preferences.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ export type UserPreferencesState = {
1919
theme: Theme
2020
openLinksNewTab: boolean
2121
onboardingCompleted: boolean
22+
onboardingResult?: {
23+
title: string
24+
sources: string[]
25+
tags: string[]
26+
} | null
2227
occupation: string | null
2328
listingMode: ListingMode
2429
promptEngine: string
@@ -244,6 +249,7 @@ export const useUserPreferences = create(
244249
return {
245250
...state,
246251
onboardingCompleted: true,
252+
occupation: state.onboardingResult?.title || '',
247253
}
248254
}
249255
return state

0 commit comments

Comments
 (0)