From 45ad6708c716d202880509a94da7d2398d419200 Mon Sep 17 00:00:00 2001 From: Radu Mojic Date: Fri, 18 Oct 2024 11:09:29 +0300 Subject: [PATCH 1/2] use EGLD to search for native token txes not xegld --- src/pages/NativeToken/NativeTokenTransactions.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/NativeToken/NativeTokenTransactions.tsx b/src/pages/NativeToken/NativeTokenTransactions.tsx index df388071..b0714e9d 100644 --- a/src/pages/NativeToken/NativeTokenTransactions.tsx +++ b/src/pages/NativeToken/NativeTokenTransactions.tsx @@ -3,6 +3,7 @@ import { useSelector } from 'react-redux'; import { useSearchParams } from 'react-router-dom'; import { TransactionsTable } from 'components'; +import { isEgldToken } from 'helpers'; import { useAdapter, useFetchTransactions } from 'hooks'; import { NativeTokenTabs } from 'layouts/NativeTokenLayout/NativeTokenTabs'; import { activeNetworkSelector } from 'redux/selectors'; @@ -21,7 +22,7 @@ export const NativeTokenTransactions = () => { isDataReady, dataChanged } = useFetchTransactions(getTransfers, getTransfersCount, { - token: egldLabel + token: isEgldToken(egldLabel) ? 'EGLD' : egldLabel }); useEffect(() => { From b645a0eb3f757c5316554f215bfecadc80ac396a Mon Sep 17 00:00:00 2001 From: Radu Mojic Date: Fri, 18 Oct 2024 11:24:43 +0300 Subject: [PATCH 2/2] fixes after review --- src/layouts/NativeTokenLayout/NativeTokenDetailsCard.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/layouts/NativeTokenLayout/NativeTokenDetailsCard.tsx b/src/layouts/NativeTokenLayout/NativeTokenDetailsCard.tsx index 636127b8..eddf5537 100644 --- a/src/layouts/NativeTokenLayout/NativeTokenDetailsCard.tsx +++ b/src/layouts/NativeTokenLayout/NativeTokenDetailsCard.tsx @@ -73,7 +73,7 @@ export const NativeTokenDetailsCard = () => { !assets && ticker !== name ? { title: 'Name', value: name } : {}, { title: 'Decimals', value: decimals } ], - [assets] + [assets, ticker, name] ); const statsCards = useMemo(