From ebb23721ed2c350578283291ea65ef7bd81d62be Mon Sep 17 00:00:00 2001 From: Dan Miller Date: Tue, 14 Aug 2018 00:42:22 -0230 Subject: Cast arguments for new Bignumbers() to string. --- ui/app/token-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/app/token-util.js') diff --git a/ui/app/token-util.js b/ui/app/token-util.js index 0d4233766..8798ed266 100644 --- a/ui/app/token-util.js +++ b/ui/app/token-util.js @@ -44,7 +44,7 @@ async function getSymbolAndDecimals (tokenAddress, existingTokens = []) { function calcTokenAmount (value, decimals) { const multiplier = Math.pow(10, Number(decimals || 0)) - return new BigNumber(value).div(multiplier).toNumber() + return new BigNumber(String(value)).div(multiplier).toNumber() } -- cgit v1.2.3