aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/conversion-util.js
diff options
context:
space:
mode:
authortrejgun <trejgun@gmail.com>2018-06-24 17:48:02 +0800
committertrejgun <trejgun@gmail.com>2018-06-24 17:48:02 +0800
commit5d034006e8a73c7d64dee22c856c3733643454f8 (patch)
tree903d3da4af5954a179f13e58006d3deecb4cb052 /ui/app/conversion-util.js
parent299abee666d7f8347e062afff4f2fae47c7f6968 (diff)
downloadtangerine-wallet-browser-5d034006e8a73c7d64dee22c856c3733643454f8.tar.gz
tangerine-wallet-browser-5d034006e8a73c7d64dee22c856c3733643454f8.tar.zst
tangerine-wallet-browser-5d034006e8a73c7d64dee22c856c3733643454f8.zip
fixes #4307 BigNumber casting issue
Diffstat (limited to 'ui/app/conversion-util.js')
-rw-r--r--ui/app/conversion-util.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/app/conversion-util.js b/ui/app/conversion-util.js
index 100402d95..90c2226e7 100644
--- a/ui/app/conversion-util.js
+++ b/ui/app/conversion-util.js
@@ -140,7 +140,7 @@ const addCurrencies = (a, b, options = {}) => {
bBase,
...conversionOptions
} = options
- const value = (new BigNumber(a, aBase)).add(b, bBase)
+ const value = (new BigNumber(a.toString(), aBase)).add(b.toString(), bBase)
return converter({
value,