mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-20 02:28:56 +00:00
fix(@desktop/wallet): add account button is enabled in ambiguous state
Fixes: #10078
This commit is contained in:
parent
490e8ff258
commit
cab6af212f
@ -214,6 +214,10 @@ QtObject {
|
|||||||
if (root.selectedOrigin.pairType === Constants.addAccountPopup.keyPairType.profile ||
|
if (root.selectedOrigin.pairType === Constants.addAccountPopup.keyPairType.profile ||
|
||||||
root.selectedOrigin.pairType === Constants.addAccountPopup.keyPairType.seedImport) {
|
root.selectedOrigin.pairType === Constants.addAccountPopup.keyPairType.seedImport) {
|
||||||
return valid &&
|
return valid &&
|
||||||
|
!!root.selectedDerivedAddress &&
|
||||||
|
root.selectedDerivedAddress.loaded &&
|
||||||
|
!root.selectedDerivedAddress.alreadyCreated &&
|
||||||
|
root.selectedDerivedAddress.address !== "" &&
|
||||||
root.derivationPathRegEx.test(root.addAccountModule.derivationPath) &&
|
root.derivationPathRegEx.test(root.addAccountModule.derivationPath) &&
|
||||||
(!root.derivationPathOutOfTheDefaultStatusDerivationTree ||
|
(!root.derivationPathOutOfTheDefaultStatusDerivationTree ||
|
||||||
root.derivationPathOutOfTheDefaultStatusDerivationTreeConfirmed)
|
root.derivationPathOutOfTheDefaultStatusDerivationTreeConfirmed)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user