mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-26 20:45:37 +02:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user