From dfb722b6ed7203d782b227c3145739ab5af256ba Mon Sep 17 00:00:00 2001 From: Dan J Miller Date: Tue, 13 Oct 2020 17:38:24 -0230 Subject: [PATCH] Hex prefix newly fetched token balances in build-quote (#9586) * Hex prefix newly fetched token balances in build-quote * Set balance to dec WEI string instead of hex when adding token via swap from select --- ui/app/pages/swaps/build-quote/build-quote.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/app/pages/swaps/build-quote/build-quote.js b/ui/app/pages/swaps/build-quote/build-quote.js index 6074801ee..89f9152f9 100644 --- a/ui/app/pages/swaps/build-quote/build-quote.js +++ b/ui/app/pages/swaps/build-quote/build-quote.js @@ -132,9 +132,8 @@ export default function BuildQuote ({ .then((fetchedBalance) => { if (fetchedBalance?.balance) { const balanceAsDecString = fetchedBalance.balance.toString(10) - const balanceAsHexString = fetchedBalance.balance.toString(16) const userTokenBalance = calcTokenAmount(balanceAsDecString, token.decimals) - dispatch(setSwapsFromToken({ ...token, string: userTokenBalance.toString(10), balance: balanceAsHexString })) + dispatch(setSwapsFromToken({ ...token, string: userTokenBalance.toString(10), balance: balanceAsDecString })) } }) }