From ee15586b7c18e6ce842b7c51cbbbb0d0d8f31b8c Mon Sep 17 00:00:00 2001 From: Connor Barr Date: Tue, 6 Aug 2024 17:27:36 +0100 Subject: [PATCH] fix: wallet loading state order history page --- packages/web/components/complex/orders-history/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/web/components/complex/orders-history/index.tsx b/packages/web/components/complex/orders-history/index.tsx index 28e721f224..e3b98f0434 100644 --- a/packages/web/components/complex/orders-history/index.tsx +++ b/packages/web/components/complex/orders-history/index.tsx @@ -64,7 +64,7 @@ export const OrderHistory = observer(() => { const { t } = useTranslation(); const wallet = accountStore.getWallet(accountStore.osmosisChainId); const listRef = useRef(null); - const { onOpenWalletSelect } = useWalletSelect(); + const { onOpenWalletSelect, isLoading: isWalletLoading } = useWalletSelect(); const { orders, @@ -150,7 +150,7 @@ export const OrderHistory = observer(() => { } }, [claimAllOrders, logEvent, refetch]); - const showConnectWallet = !wallet?.isWalletConnected; + const showConnectWallet = !wallet?.isWalletConnected && !isWalletLoading; if (showConnectWallet) { return (