completionId: cgen-8a7e102b98d140dcbe83e396d5c8b679
cgen-8a7e102b98d140dcbe83e396d5c8b679
This commit is contained in:
parent
342cd2cc3e
commit
362c2ca48e
1 changed files with 2 additions and 3 deletions
|
|
@ -208,11 +208,10 @@ export default function Onboarding() {
|
|||
}, [user, steps.length, mapProfileToOnboardingData]);
|
||||
|
||||
useEffect(() => {
|
||||
// Disable local persistence for onboarding
|
||||
if (typeof window === "undefined") return;
|
||||
// Disable local persistence for onboarding (but not while finishing)
|
||||
if (typeof window === "undefined" || isFinishing) return;
|
||||
try {
|
||||
window.localStorage.removeItem(ONBOARDING_STORAGE_KEY);
|
||||
window.localStorage.removeItem("onboarding_complete");
|
||||
} catch {}
|
||||
}, [hydrated, isFinishing]);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue