diff options
author | Dan <danjm.com@gmail.com> | 2018-05-31 00:40:30 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-05-31 07:21:46 +0800 |
commit | 6d8344d0d0af3734255a0e9e79d857d84b5fe2aa (patch) | |
tree | a1f22d4291f2353dfe963cae0d32e9c60a3dbdb5 /ui/app/components/send_/send.utils.js | |
parent | 5347319dffa0a9e4df5fe26d5ea60293b3489f78 (diff) | |
download | dexon-wallet-6d8344d0d0af3734255a0e9e79d857d84b5fe2aa.tar.gz dexon-wallet-6d8344d0d0af3734255a0e9e79d857d84b5fe2aa.tar.zst dexon-wallet-6d8344d0d0af3734255a0e9e79d857d84b5fe2aa.zip |
Update amount error on update of send screen.
Diffstat (limited to 'ui/app/components/send_/send.utils.js')
-rw-r--r-- | ui/app/components/send_/send.utils.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/send_/send.utils.js b/ui/app/components/send_/send.utils.js index 71a8a35c..a35a55bf 100644 --- a/ui/app/components/send_/send.utils.js +++ b/ui/app/components/send_/send.utils.js @@ -36,7 +36,7 @@ function calcGasTotal (gasLimit, gasPrice) { function isBalanceSufficient ({ amount = '0x0', - amountConversionRate, + amountConversionRate = 0, balance, conversionRate, gasTotal = '0x0', @@ -58,7 +58,7 @@ function isBalanceSufficient ({ { value: totalAmount, fromNumericBase: 'hex', - conversionRate: amountConversionRate || conversionRate, + conversionRate: Number(amountConversionRate) || conversionRate, fromCurrency: primaryCurrency, }, ) |