From 904e479a3057877b95700b2193c0e05b989fc693 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 22 Jul 2024 15:42:39 +0800 Subject: [PATCH] update for zkl issue --- src/components/DashboardS2/Tabs/Assets.tsx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/DashboardS2/Tabs/Assets.tsx b/src/components/DashboardS2/Tabs/Assets.tsx index fb0e437a..0248844c 100644 --- a/src/components/DashboardS2/Tabs/Assets.tsx +++ b/src/components/DashboardS2/Tabs/Assets.tsx @@ -382,6 +382,10 @@ export default function Assets(props: IAssetsTableProps) { !obj?.iconURL || obj.iconURL === "" ? getIconUrlByL2Address(chains.l2Address) : obj.iconURL; + + if (obj.symbol === "ZKL") { + obj.iconURL = "https://etherscan.io/token/images/zklink_32.png"; + } }); // not WETH @@ -507,10 +511,11 @@ export default function Assets(props: IAssetsTableProps) {
- {formatNumberWithUnit(item?.totalAmount)} + {/* {formatNumberWithUnit(item?.totalAmount)} ({formatNumberWithUnit(item?.totalTvl, "$")}) - + */} + -