From c0f74b0dc49248a3ee8c9906a3c420e95984f638 Mon Sep 17 00:00:00 2001 From: Igor Sirotin Date: Fri, 7 Jun 2024 17:56:41 +0100 Subject: [PATCH] fix: account restore on windows/linux --- .../internal/user_profile_confirm_password_state.nim | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/app/modules/startup/internal/user_profile_confirm_password_state.nim b/src/app/modules/startup/internal/user_profile_confirm_password_state.nim index 06a8dba127..e5273f0c0c 100644 --- a/src/app/modules/startup/internal/user_profile_confirm_password_state.nim +++ b/src/app/modules/startup/internal/user_profile_confirm_password_state.nim @@ -9,9 +9,12 @@ proc delete*(self: UserProfileConfirmPasswordState) = self.State.delete method getNextPrimaryState*(self: UserProfileConfirmPasswordState, controller: Controller): State = - if not main_constants.SUPPORTS_FINGERPRINT: - return nil - return createState(StateType.Biometrics, self.flowType, self) + if main_constants.SUPPORTS_FINGERPRINT: + return createState(StateType.Biometrics, self.flowType, self) + if self.flowType == FlowType.FirstRunOldUserImportSeedPhrase or + self.flowType == FlowType.FirstRunOldUserKeycardImport: + return createState(StateType.ProfileFetching, self.flowType, nil) + return nil method executePrimaryCommand*(self: UserProfileConfirmPasswordState, controller: Controller) = if main_constants.SUPPORTS_FINGERPRINT: