fix(@desktop/wallet): add account button is enabled in ambiguous state

Fixes: #10078
This commit is contained in:
Sale Djenic 2023-03-30 15:02:28 +02:00 committed by saledjenic
parent 490e8ff258
commit cab6af212f
1 changed files with 4 additions and 0 deletions

View File

@ -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)