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]);
|
}, [user, steps.length, mapProfileToOnboardingData]);
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Disable local persistence for onboarding
|
// Disable local persistence for onboarding (but not while finishing)
|
||||||
if (typeof window === "undefined") return;
|
if (typeof window === "undefined" || isFinishing) return;
|
||||||
try {
|
try {
|
||||||
window.localStorage.removeItem(ONBOARDING_STORAGE_KEY);
|
window.localStorage.removeItem(ONBOARDING_STORAGE_KEY);
|
||||||
window.localStorage.removeItem("onboarding_complete");
|
|
||||||
} catch {}
|
} catch {}
|
||||||
}, [hydrated, isFinishing]);
|
}, [hydrated, isFinishing]);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue