Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

Commit

Permalink
fix: enable sending transactions when no second signature is enabled (#…
Browse files Browse the repository at this point in the history
…342)

## Proposed changes

Wallets that have no second signature, don't have a second signature field when sending a transaction. As a result, the buttons would not become available as the form could not be validated due to the missing second signature. This PR fixes that issue so wallets without 2nd sig are able to send tx again.

I'm not that familiar with vuelidate, so please let me know if there's a better way to go about this.
  • Loading branch information
ItsANameToo authored and luciorubeens committed Oct 8, 2018
1 parent dcdf6f2 commit 987ef91
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ export default {
},
secondPassphrase: {
isValid (value) {
if (!this.currentWallet.secondPublicKey) {
return true
}
if (this.$refs.secondPassphrase) {
return !this.$refs.secondPassphrase.$v.$invalid
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,10 @@ export default {
},
secondPassphrase: {
isValid (value) {
if (!this.currentWallet.secondPublicKey) {
return true
}
if (this.$refs.secondPassphrase) {
return !this.$refs.secondPassphrase.$v.$invalid
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,10 @@ export default {
},
secondPassphrase: {
isValid (value) {
if (!this.currentWallet.secondPublicKey) {
return true
}
if (this.$refs.secondPassphrase) {
return !this.$refs.secondPassphrase.$v.$invalid
}
Expand Down

0 comments on commit 987ef91

Please sign in to comment.