Skip to content

Commit

Permalink
fix: undefined tvl formatting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
akiraonstarknet authored Oct 5, 2024
1 parent 15a7884 commit a584239
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/TVL.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const TVL: React.FC = () => {
{isPending ? (
<Spinner size="sm" color="white" marginLeft={'5px'} />
) : (
formattedTvlData(Number(data?.tvl))
{data ? formattedTvlData(Number(data.tvl)) : '0'}
)}
</StatNumber>
</Stat>
Expand Down

0 comments on commit a584239

Please sign in to comment.