From 07a2369a2614f6ef219dee61948b4155b9763c30 Mon Sep 17 00:00:00 2001 From: plowsof Date: Wed, 8 Feb 2023 23:39:10 +0000 Subject: [PATCH] wizardWalletInput: check wallet exists in wallet dir --- js/Wizard.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/Wizard.js b/js/Wizard.js index d47d1684..d6df15ae 100644 --- a/js/Wizard.js +++ b/js/Wizard.js @@ -76,8 +76,9 @@ function walletPathExists(accountsDir, directory, filename, isIOS, walletManager var path = accountsDir + filename; else var path = directory + filename + "/" + filename; + var path2 = directory + filename; - if (walletManager.walletExists(path)) + if (walletManager.walletExists(path) || walletManager.walletExists(path2)) return true; return false; }