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 34819f9 commit 8b5d49f
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']"

Check warning on line 117 in src/pages/testnet/DevelopersPage.vue

View workflow job for this annotation

GitHub Actions / lint

This line has a length of 126. Maximum allowed is 120

label="Active key"
outlined
)
Expand Down

0 comments on commit 8b5d49f

Please sign in to comment.