Skip to content

Commit

Permalink
Merge pull request #1825 from threefoldtech/development_fees
Browse files Browse the repository at this point in the history
fix transfer validation
  • Loading branch information
AhmedHanafy725 authored Dec 31, 2023
2 parents f455354 + 936b2f0 commit 42020c1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/playground/src/dashboard/transfer_view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
:rules="[
validators.required('Transfer amount is required '),
validators.isNumeric('Amount should be a number.'),
validators.min('Amount must be greater than 0.', 0.001),
validators.min('Amount must be greater than 0.001', 0.001),
validators.isDecimal('Amount can have 3 decimals only.', { decimal_digits: '0,3' }),
validators.max('Insufficient funds.', freeBalance),
validators.max('Insufficient funds.', freeBalance - 0.01),
]"
#="{ props }"
>
Expand Down Expand Up @@ -88,9 +88,9 @@
:rules="[
validators.required('Transfer amount is required '),
validators.isNumeric('Amount should be a number.'),
validators.min('Amount must be greater than 0.', 0.001),
validators.min('Amount must be greater than 0.001', 0.001),
validators.isDecimal('Amount can have 3 decimals only.', { decimal_digits: '0,3' }),
validators.max('Insufficient funds.', freeBalance),
validators.max('Insufficient funds.', freeBalance - 0.01),
]"
#="{ props }"
>
Expand Down

0 comments on commit 42020c1

Please sign in to comment.