From d092e4bdbe693ee743b39d139250aa2c09bdeb7b Mon Sep 17 00:00:00 2001 From: ryanml Date: Mon, 26 Jul 2021 07:08:10 -0700 Subject: [PATCH] Fixing type issue with auto-filled custom token decimals value (#11604) --- ui/helpers/utils/token-util.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/helpers/utils/token-util.js b/ui/helpers/utils/token-util.js index b8ee4bbd0..46e3617c8 100644 --- a/ui/helpers/utils/token-util.js +++ b/ui/helpers/utils/token-util.js @@ -73,7 +73,7 @@ async function getDecimals(tokenAddress) { const contractMetadataInfo = getContractMetadata(tokenAddress); if (contractMetadataInfo) { - decimals = contractMetadataInfo.decimals; + decimals = contractMetadataInfo.decimals?.toString(); } }