Skip to content

Commit 7699e31

Browse files
authored
Update api.ts
1 parent fe07ac4 commit 7699e31

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/utils/api.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -434,11 +434,11 @@ export const formatBitcoinValue = (value: string | number): string => {
434434
const btcValue = numValue / 100000000;
435435

436436
if (btcValue >= 1000000) {
437-
return `${(btcValue / 1000000).toFixed(2)}M BTC`;
437+
return `${(btcValue / 1000000).toFixed(2)}M`;
438438
}
439439
if (btcValue >= 1000) {
440-
return `${(btcValue / 1000).toFixed(2)}K BTC`;
440+
return `${(btcValue / 1000).toFixed(2)}K`;
441441
}
442442

443-
return `${btcValue.toFixed(8)} BTC`;
443+
return `${btcValue.toFixed(8)}`;
444444
};

0 commit comments

Comments
 (0)