Skip to content

Commit

Permalink
fix: show loading state until total balance is fully loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
tigranpetrossian committed Nov 29, 2024
1 parent 2fb0203 commit 91cf37f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/pages/home/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export function Home() {
});

const btcAddress = useCurrentAccountNativeSegwitAddressIndexZero();
const { totalUsdBalance, isLoading, isLoadingAdditionalData } = useTotalBalance({
const { totalUsdBalance, isPending, isLoadingAdditionalData } = useTotalBalance({
btcAddress,
stxAddress: account?.address || '',
});
Expand All @@ -68,7 +68,7 @@ export function Home() {
balance={totalUsdBalance}
toggleSwitchAccount={() => toggleSwitchAccount()}
isFetchingBnsName={isFetchingBnsName}
isLoadingBalance={isLoading}
isLoadingBalance={isPending}
isLoadingAdditionalData={isLoadingAdditionalData}
isBalancePrivate={isPrivateMode}
onShowBalance={togglePrivateMode}
Expand Down

0 comments on commit 91cf37f

Please sign in to comment.