return 0 if no change

This commit is contained in:
BitcoinVM 2024-02-04 12:28:55 +08:00
parent 3aec1c5a6e
commit f7f4a0fb5a

View File

@ -91,7 +91,7 @@ const change24 = (entry: { consensus_pubkey: Key; tokens: string }) => {
const latestValue = latest.value[txt]; const latestValue = latest.value[txt];
if (!latestValue) { if (!latestValue) {
return; return 0;
} }
const displayTokens = format.tokenAmountNumber({ const displayTokens = format.tokenAmountNumber({