Skip to content

Commit

Permalink
fix(@desktop/wallet): add account button is enabled in ambiguous state
Browse files Browse the repository at this point in the history
Fixes: #10078
  • Loading branch information
saledjenic committed Apr 3, 2023
1 parent 490e8ff commit cab6af2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit cab6af2

Please sign in to comment.