From 91cf37f44335b3b89033589ccc8dfe5747262719 Mon Sep 17 00:00:00 2001 From: Tigran <3755268+tigranpetrossian@users.noreply.github.com> Date: Fri, 29 Nov 2024 11:35:25 +0400 Subject: [PATCH] fix: show loading state until total balance is fully loaded --- src/app/pages/home/home.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/pages/home/home.tsx b/src/app/pages/home/home.tsx index fed559a85b..ad1cd93b11 100644 --- a/src/app/pages/home/home.tsx +++ b/src/app/pages/home/home.tsx @@ -41,7 +41,7 @@ export function Home() { }); const btcAddress = useCurrentAccountNativeSegwitAddressIndexZero(); - const { totalUsdBalance, isLoading, isLoadingAdditionalData } = useTotalBalance({ + const { totalUsdBalance, isPending, isLoadingAdditionalData } = useTotalBalance({ btcAddress, stxAddress: account?.address || '', }); @@ -68,7 +68,7 @@ export function Home() { balance={totalUsdBalance} toggleSwitchAccount={() => toggleSwitchAccount()} isFetchingBnsName={isFetchingBnsName} - isLoadingBalance={isLoading} + isLoadingBalance={isPending} isLoadingAdditionalData={isLoadingAdditionalData} isBalancePrivate={isPrivateMode} onShowBalance={togglePrivateMode}