From 8a0b8f315e28c8b0b70c1c57cf18acf6699c5f11 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 22 Jul 2024 20:27:26 +0800 Subject: [PATCH 1/2] fix nova tvl --- src/components/DashboardS2/Tabs/Assets.tsx | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/src/components/DashboardS2/Tabs/Assets.tsx b/src/components/DashboardS2/Tabs/Assets.tsx index 0248844c..80b3d33b 100644 --- a/src/components/DashboardS2/Tabs/Assets.tsx +++ b/src/components/DashboardS2/Tabs/Assets.tsx @@ -511,11 +511,16 @@ export default function Assets(props: IAssetsTableProps) {
- {/* {formatNumberWithUnit(item?.totalAmount)} - - ({formatNumberWithUnit(item?.totalTvl, "$")}) - */} - - + {item.symbol === "ZKL" ? ( + "-" + ) : ( + <> + {formatNumberWithUnit(item?.totalAmount)} + + ({formatNumberWithUnit(item?.totalTvl, "$")}) + {" "} + + )}
From f5a1f495204f836d4f305846eae6c65ff9884029 Mon Sep 17 00:00:00 2001 From: leo Date: Mon, 22 Jul 2024 20:28:59 +0800 Subject: [PATCH 2/2] fix nova tvl --- src/components/DashboardS2/Tabs/Assets.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/DashboardS2/Tabs/Assets.tsx b/src/components/DashboardS2/Tabs/Assets.tsx index 80b3d33b..d16ba72b 100644 --- a/src/components/DashboardS2/Tabs/Assets.tsx +++ b/src/components/DashboardS2/Tabs/Assets.tsx @@ -518,7 +518,7 @@ export default function Assets(props: IAssetsTableProps) { {formatNumberWithUnit(item?.totalAmount)} ({formatNumberWithUnit(item?.totalTvl, "$")}) - {" "} + )}