From 26c566a375e55ff67f17a18709b7ec3183b1021d Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Sat, 20 Mar 2021 21:03:54 -0300 Subject: [PATCH] fix(router): redirect to PIN route after importing stronghold backup --- packages/shared/lib/router.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/shared/lib/router.ts b/packages/shared/lib/router.ts index b62d62410ca..6f90260ee49 100644 --- a/packages/shared/lib/router.ts +++ b/packages/shared/lib/router.ts @@ -163,8 +163,10 @@ export const routerNext = (event) => { nextRoute = AppRoute.Congratulations const { importType } = params walletSetupType.set(importType) - if (importType === SetupType.Mnemonic || importType === SetupType.Stronghold) { + if (importType === SetupType.Mnemonic) { nextRoute = AppRoute.Secure + } else if (importType === SetupType.Stronghold) { + nextRoute = AppRoute.Protect } else if (importType === SetupType.Seed || importType === SetupType.Seedvault) { nextRoute = AppRoute.Balance }