Skip to content

Commit

Permalink
Merge pull request #1713 from threefoldtech/development_fix_max_transfer
Browse files Browse the repository at this point in the history
Fix max transfer amount
  • Loading branch information
zaelgohary authored Dec 18, 2023
2 parents 12ece7e + 6f97180 commit 6d0ec3d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions packages/playground/src/dashboard/transfer_view.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +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.00000000001),
validators.max('Insufficient funds', freeBalance),
validators.min('Amount must be greater than 0.', 0.001),
validators.isDecimal('Amount can have 3 decimals only.', { decimal_digits: '0,3' }),
validators.max('Insufficient funds.', freeBalance),
]"
#="{ props }"
>
Expand Down Expand Up @@ -87,8 +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.00000000001),
validators.max('Insufficient funds', freeBalance),
validators.min('Amount must be greater than 0.', 0.001),
validators.isDecimal('Amount can have 3 decimals only.', { decimal_digits: '0,3' }),
validators.max('Insufficient funds.', freeBalance),
]"
#="{ props }"
>
Expand Down

0 comments on commit 6d0ec3d

Please sign in to comment.