fix: only show onboarding wizard after account setup

The wizard creates categories via POST which requires auth.
Gate the wizard on isAuthenticated so users create their
account first via Sign In, then the wizard appears.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-03 13:49:44 +02:00
parent 17d76761bb
commit 4148833644

View File

@@ -57,8 +57,9 @@ function RootLayout() {
useOnboardingComplete();
const [wizardDismissed, setWizardDismissed] = useState(false);
// Don't show onboarding wizard until user has created an account
const showWizard =
!onboardingLoading && onboardingComplete !== "true" && !wizardDismissed;
!onboardingLoading && onboardingComplete !== "true" && !wizardDismissed && isAuthenticated;
const isItemPanelOpen = panelMode !== "closed";
const isCandidatePanelOpen = candidatePanelMode !== "closed";