From abd618787a89a880d19ff06e39380c0e44547c8d Mon Sep 17 00:00:00 2001 From: truph01 Date: Thu, 17 Oct 2024 14:52:27 +0700 Subject: [PATCH] fix: User remains in first step of Onboarding --- src/libs/actions/Welcome/OnboardingFlow.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libs/actions/Welcome/OnboardingFlow.ts b/src/libs/actions/Welcome/OnboardingFlow.ts index 3c11f3c440db..b052214fe78c 100644 --- a/src/libs/actions/Welcome/OnboardingFlow.ts +++ b/src/libs/actions/Welcome/OnboardingFlow.ts @@ -110,7 +110,11 @@ function startOnboardingFlow() { if (focusedRoute?.name === currentRoute?.name) { return; } - navigationRef.resetRoot(adaptedState); + navigationRef.resetRoot({ + ...navigationRef.getRootState(), + ...adaptedState, + stale: true, + } as PartialState); } function getOnboardingInitialPath(): string {