From cf4f52cd2ef23b87d0cb39bddc1531288b311df6 Mon Sep 17 00:00:00 2001 From: kurt Date: Fri, 30 Aug 2024 01:24:32 +0800 Subject: [PATCH] fix: Earn module withdrawable value error when switch account (#207) (#208) --- src/pages/earn/index.svelte | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pages/earn/index.svelte b/src/pages/earn/index.svelte index ccdf0ac1..d909cfb8 100644 --- a/src/pages/earn/index.svelte +++ b/src/pages/earn/index.svelte @@ -194,6 +194,8 @@ }) if (result.rows.length > 0) { rexEOSBalance.set(Asset.from(result.rows[0].balance, $systemToken!.symbol)) + } else { + rexEOSBalance.set(Asset.from(0, $systemToken!.symbol)) } }) return () => {