From cab6af212f22a64c2a9589d664311990320e84af Mon Sep 17 00:00:00 2001 From: Sale Djenic Date: Thu, 30 Mar 2023 15:02:28 +0200 Subject: [PATCH] fix(@desktop/wallet): add account button is enabled in ambiguous state Fixes: #10078 --- .../AppLayouts/Wallet/addaccount/stores/AddAccountStore.qml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ui/app/AppLayouts/Wallet/addaccount/stores/AddAccountStore.qml b/ui/app/AppLayouts/Wallet/addaccount/stores/AddAccountStore.qml index 080f6faf5c..29fe2715e6 100644 --- a/ui/app/AppLayouts/Wallet/addaccount/stores/AddAccountStore.qml +++ b/ui/app/AppLayouts/Wallet/addaccount/stores/AddAccountStore.qml @@ -214,6 +214,10 @@ QtObject { if (root.selectedOrigin.pairType === Constants.addAccountPopup.keyPairType.profile || root.selectedOrigin.pairType === Constants.addAccountPopup.keyPairType.seedImport) { return valid && + !!root.selectedDerivedAddress && + root.selectedDerivedAddress.loaded && + !root.selectedDerivedAddress.alreadyCreated && + root.selectedDerivedAddress.address !== "" && root.derivationPathRegEx.test(root.addAccountModule.derivationPath) && (!root.derivationPathOutOfTheDefaultStatusDerivationTree || root.derivationPathOutOfTheDefaultStatusDerivationTreeConfirmed)