1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Fixing type issue with auto-filled custom token decimals value (#11604)

This commit is contained in:
ryanml 2021-07-26 07:08:10 -07:00 committed by GitHub
parent d03dc311ee
commit d092e4bdbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -73,7 +73,7 @@ async function getDecimals(tokenAddress) {
const contractMetadataInfo = getContractMetadata(tokenAddress);
if (contractMetadataInfo) {
decimals = contractMetadataInfo.decimals;
decimals = contractMetadataInfo.decimals?.toString();
}
}