From 5ad4cc1aed4775dada079e8764e4fb4c2d94c54f Mon Sep 17 00:00:00 2001 From: Hau Nguyen Van Date: Wed, 28 Feb 2024 11:04:10 +0700 Subject: [PATCH 1/2] update: new token info: weth,och,ntmpi --- src/components/Account/AssetsTable/AssetsTable.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/components/Account/AssetsTable/AssetsTable.js b/src/components/Account/AssetsTable/AssetsTable.js index f1628185..6001f8be 100644 --- a/src/components/Account/AssetsTable/AssetsTable.js +++ b/src/components/Account/AssetsTable/AssetsTable.js @@ -41,7 +41,12 @@ const AssetsTable = memo(({ data = [] }) => { let tokenInfo = amountDecimal18.find(e => e.address?.toLowerCase() == validatorAddressSplit?.toLowerCase()); const tokenInOraichain = oraichainTokens.find(token => { const arrIncludes = [token?.denom?.toLowerCase(), token?.name?.toLowerCase()]; - return arrIncludes.includes(validatorAddressSplit?.toLowerCase()) || arrIncludes.includes(token?.denom?.toLowerCase()); + return ( + arrIncludes.includes(item?.name?.toLowerCase()) || + arrIncludes.includes(item?.denom?.toLowerCase()) || + arrIncludes.includes(validatorAddressSplit?.toLowerCase()) || + arrIncludes.includes(tokenInfo?.name) + ); }); const tokenUsd = priceTokens[tokenInOraichain?.coinGeckoId] || 0; @@ -63,6 +68,7 @@ const AssetsTable = memo(({ data = [] }) => { decimal: 18, }; } + console.log({ tokenInfo, item, tokenUsd, tokenInOraichain }); const decimalOfToken = tokenInfo?.decimal || tokenInOraichain?.decimals || 6; const validatorDataCell = _.isNil(item?.validator_address) ? (
-
From e1c7936e76defaa64b3ceadc64ffb7e9a68fcab7 Mon Sep 17 00:00:00 2001 From: Hau Nguyen Van Date: Wed, 28 Feb 2024 11:05:19 +0700 Subject: [PATCH 2/2] update: new token info: weth,och,ntmpi --- src/components/Account/AssetsTable/AssetsTable.js | 1 - 1 file changed, 1 deletion(-) diff --git a/src/components/Account/AssetsTable/AssetsTable.js b/src/components/Account/AssetsTable/AssetsTable.js index 6001f8be..77c7d1fc 100644 --- a/src/components/Account/AssetsTable/AssetsTable.js +++ b/src/components/Account/AssetsTable/AssetsTable.js @@ -68,7 +68,6 @@ const AssetsTable = memo(({ data = [] }) => { decimal: 18, }; } - console.log({ tokenInfo, item, tokenUsd, tokenInOraichain }); const decimalOfToken = tokenInfo?.decimal || tokenInOraichain?.decimals || 6; const validatorDataCell = _.isNil(item?.validator_address) ? (
-