From a58423918e9938f55a3470401543b648c888c838 Mon Sep 17 00:00:00 2001 From: Akira <156126180+akiraonstarknet@users.noreply.github.com> Date: Sat, 5 Oct 2024 18:52:12 +0530 Subject: [PATCH] fix: undefined tvl formatting issue --- src/components/TVL.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/TVL.tsx b/src/components/TVL.tsx index 6ae07de..09c5c7f 100755 --- a/src/components/TVL.tsx +++ b/src/components/TVL.tsx @@ -52,7 +52,7 @@ const TVL: React.FC = () => { {isPending ? ( ) : ( - formattedTvlData(Number(data?.tvl)) + {data ? formattedTvlData(Number(data.tvl)) : '0'} )}