fix(desktop): clear forceOnboarding flag on onboarding completion
completeOnboarding() only set completed=true but never cleared the forceOnboarding flag, causing OnboardingGuard to redirect back to onboarding in an infinite loop when --force-onboarding was used. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
afe51d325d
commit
7af64a12e2
1 changed files with 1 additions and 1 deletions
|
|
@ -48,7 +48,7 @@ export const useOnboardingStore = create<OnboardingStore>()(
|
|||
|
||||
setClientConnected: (connected) => set({ clientConnected: connected }),
|
||||
|
||||
completeOnboarding: () => set({ completed: true }),
|
||||
completeOnboarding: () => set({ completed: true, forceOnboarding: false }),
|
||||
|
||||
initForceFlag: async () => {
|
||||
const flags = await window.electronAPI.app.getFlags()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue