From 926e6917a3167c6472e122971a8ba1d98e814937 Mon Sep 17 00:00:00 2001 From: Terence Lim Date: Tue, 14 Nov 2023 13:33:56 +0800 Subject: [PATCH] Fixed typo of sybmol to symbol --- apps/enterprise/src/chain/utils/getAssetsInfo.ts | 10 ++++------ apps/enterprise/src/queries/useDaoAssets.ts | 1 - 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/apps/enterprise/src/chain/utils/getAssetsInfo.ts b/apps/enterprise/src/chain/utils/getAssetsInfo.ts index f3e1c210..621c0978 100644 --- a/apps/enterprise/src/chain/utils/getAssetsInfo.ts +++ b/apps/enterprise/src/chain/utils/getAssetsInfo.ts @@ -18,7 +18,7 @@ interface TFMAssetInfo { interface TFLIbcAssetInfo { denom: string; - sybmol?: string; + symbol?: string; name: string; icon: string; decimals?: number; @@ -27,7 +27,7 @@ interface TFLIbcAssetInfo { type TFLIbcAssetsInfo = Record>; interface TFLCw20AssetInfo { - sybmol?: string; + symbol?: string; name: string; icon: string; decimals?: number; @@ -56,10 +56,9 @@ export const getAssetsInfo = memoize(async (network: NetworkName = 'mainnet') => const { data: tflIbcAssets } = await axios.get(TFL_IBC_ASSETS_INFO_URL); Object.values(tflIbcAssets[network]).forEach((info) => { if (!info.decimals) return; - result[info.denom] = { name: info.name, - symbol: info.sybmol, + symbol: info.symbol, decimals: info.decimals, icon: info.icon, type: 'native', @@ -70,10 +69,9 @@ export const getAssetsInfo = memoize(async (network: NetworkName = 'mainnet') => const { data: tflCw20Assets } = await axios.get(TFL_CW20_ASSETS_INFO_URL); Object.entries(tflCw20Assets[network]).forEach(([id, info]) => { if (!info.decimals) return; - result[id] = { name: info.name, - symbol: info.sybmol, + symbol: info.symbol, decimals: info.decimals, icon: info.icon || cw20DefaultIcon, type: 'cw20', diff --git a/apps/enterprise/src/queries/useDaoAssets.ts b/apps/enterprise/src/queries/useDaoAssets.ts index e79ce475..6cdc5d0f 100644 --- a/apps/enterprise/src/queries/useDaoAssets.ts +++ b/apps/enterprise/src/queries/useDaoAssets.ts @@ -44,7 +44,6 @@ export const useDaoAssets = () => { try { const info = await getAssetInfo({ asset, lcd, networkName }); - assets.push({ ...asset, ...info,