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:
1 parent
17d76761bb
commit
4148833644
1 file changed
+2
-1
@@ -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";
|
||||
|
||||
Reference in new issue
Block a user