Skip to content

Commit

Permalink
fix: removed dollar sign : )
Browse files Browse the repository at this point in the history
  • Loading branch information
hemantwasthere committed Oct 5, 2024
1 parent d929f2f commit 15a7884
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/TVL.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ const TVL: React.FC = () => {

const formattedTvlData = (tvlData: number) => {
if (tvlData >= 1000000) {
return `$${(tvlData / 1000000).toFixed(2)}m`;
return `${(tvlData / 1000000).toFixed(2)}m`;
} else if (tvlData >= 1000) {
return `$${(tvlData / 1000).toFixed(2)}k`;
return `${(tvlData / 1000).toFixed(2)}k`;
}
return `$${tvlData.toString()}`;
return `${tvlData.toString()}`;
};

return (
Expand Down

0 comments on commit 15a7884

Please sign in to comment.