From 936b2f03080eee68ec5234624c55fc2bb61a8862 Mon Sep 17 00:00:00 2001 From: kassem Date: Sun, 31 Dec 2023 16:11:50 +0200 Subject: [PATCH] fix transfer cost validation --- packages/playground/src/dashboard/transfer_view.vue | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/playground/src/dashboard/transfer_view.vue b/packages/playground/src/dashboard/transfer_view.vue index 1390a63b3d..8563c9c035 100644 --- a/packages/playground/src/dashboard/transfer_view.vue +++ b/packages/playground/src/dashboard/transfer_view.vue @@ -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 }" > @@ -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 }" >