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: { onBackClicked: {
if (state === "importseed") { if (state === "importseed") {
state = "getkeys"; state = "getkeys";
} else if (((root.keysMainSetState === "connectkeys") && (LoginStore.currentAccount.username !== "")) } else if ((root.keysMainSetState === "connectkeys" && LoginStore.currentAccount.username !== "") || root.prevState === "LogIn") {
|| (root.prevState === "LogIn") || (state === "getkeys")) {
Global.applicationWindow.navigateTo("LogIn"); Global.applicationWindow.navigateTo("LogIn");
} else { } else {
Global.applicationWindow.navigateTo("Welcome"); Global.applicationWindow.navigateTo("Welcome");