fix(@desktop/onboarding): wrong screen when logging in with incorrect password

Fixes: #10819
This commit is contained in:
Sale Djenic 2023-05-26 11:25:24 +02:00 committed by Jonathan Rainville
parent e8c4199ed1
commit 32b9d72246
1 changed files with 3 additions and 2 deletions

View File

@ -421,6 +421,7 @@ method onNodeLogin*[T](self: Module[T], error: string) =
else: else:
self.moveToStartupState() self.moveToStartupState()
if currStateObj.flowType() == state.FlowType.AppLogin: if currStateObj.flowType() == state.FlowType.AppLogin:
if self.controller.isSelectedLoginAccountKeycardAccount():
self.view.setCurrentStartupState(newLoginState(state.FlowType.AppLogin, nil)) self.view.setCurrentStartupState(newLoginState(state.FlowType.AppLogin, nil))
self.controller.runLoginFlow() self.controller.runLoginFlow()
self.emitAccountLoginError(error) self.emitAccountLoginError(error)