fix(onboarding): app crashes on going back to welcome

Closes #5891
This commit is contained in:
Alexandra Betouni 2022-05-26 12:53:53 +03:00 committed by Iuri Matias
parent aeba272ae4
commit 5c3aee481b
1 changed files with 1 additions and 2 deletions

View File

@ -212,8 +212,7 @@ QtObject {
onBackClicked: {
if (state === "importseed") {
state = "getkeys";
} else if (((root.keysMainSetState === "connectkeys") && (LoginStore.currentAccount.username !== ""))
|| (root.prevState === "LogIn") || (state === "getkeys")) {
} else if ((root.keysMainSetState === "connectkeys" && LoginStore.currentAccount.username !== "") || root.prevState === "LogIn") {
Global.applicationWindow.navigateTo("LogIn");
} else {
Global.applicationWindow.navigateTo("Welcome");