From f7f4a0fb5a465b342a3bbe9777f92b14bd5cb4e7 Mon Sep 17 00:00:00 2001 From: BitcoinVM <18786721@qq.com> Date: Sun, 4 Feb 2024 12:28:55 +0800 Subject: [PATCH] return 0 if no change --- src/modules/[chain]/staking/index.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/[chain]/staking/index.vue b/src/modules/[chain]/staking/index.vue index 2cfffa2d..b211bafe 100644 --- a/src/modules/[chain]/staking/index.vue +++ b/src/modules/[chain]/staking/index.vue @@ -91,7 +91,7 @@ const change24 = (entry: { consensus_pubkey: Key; tokens: string }) => { const latestValue = latest.value[txt]; if (!latestValue) { - return; + return 0; } const displayTokens = format.tokenAmountNumber({