Skip to content

Commit

Permalink
fix: linter
Browse files Browse the repository at this point in the history
  • Loading branch information
donnyquixotic committed Feb 23, 2024
1 parent cdc9e95 commit 61f460d
Showing 1 changed file with 17 additions and 18 deletions.
35 changes: 17 additions & 18 deletions src/pages/testnet/DevelopersPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,25 @@ export default {
};
},
computed: {
isCreateAccountButtonDisabled() {
return (
!this.form.account_name ||
!this.form.owner_key ||
!this.form.active_key ||
this.submitting
);
},
isAnyInputInvalid() {
return (
!this.form.account_name ||
(!/^EOS[0-9A-Za-z]{50}$|^PUB_K1_[0-9A-Za-z]{50}$/i.test(
isCreateAccountButtonDisabled() {
return (
!this.form.account_name ||
!this.form.owner_key ||
!this.form.active_key ||
this.submitting
);
},
isAnyInputInvalid() {
return (
!this.form.account_name ||
!/^EOS[0-9A-Za-z]{50}$|^PUB_K1_[0-9A-Za-z]{50}$/i.test(
this.form.owner_key
)) ||
(!/^EOS[0-9A-Za-z]{50}$|^PUB_K1_[0-9A-Za-z]{50}$/i.test(
) ||
!/^EOS[0-9A-Za-z]{50}$|^PUB_K1_[0-9A-Za-z]{50}$/i.test(
this.form.active_key
))
);
},
)
);
},
},
methods: {
...mapActions('testnet', ['faucet', 'evmFaucet', 'account']),
Expand Down Expand Up @@ -115,7 +115,6 @@ q-page.flex.flex-center
v-model="form.active_key"
color="accent"
:rules="[ val => (/^EOS[0-9A-Za-z]{50}$|^PUB_K1_[0-9A-Za-z]{50}$/i.test(val)) || 'Please provide a valid Active key']"

label="Active key"
outlined
)
Expand Down

0 comments on commit 61f460d

Please sign in to comment.