Skip to content

Commit

Permalink
fix: wallet loading state order history page
Browse files Browse the repository at this point in the history
  • Loading branch information
crnbarr93 committed Aug 6, 2024
1 parent 4391e2a commit ee15586
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/components/complex/orders-history/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export const OrderHistory = observer(() => {
const { t } = useTranslation();
const wallet = accountStore.getWallet(accountStore.osmosisChainId);
const listRef = useRef<HTMLTableElement>(null);
const { onOpenWalletSelect } = useWalletSelect();
const { onOpenWalletSelect, isLoading: isWalletLoading } = useWalletSelect();

const {
orders,
Expand Down Expand Up @@ -150,7 +150,7 @@ export const OrderHistory = observer(() => {
}
}, [claimAllOrders, logEvent, refetch]);

const showConnectWallet = !wallet?.isWalletConnected;
const showConnectWallet = !wallet?.isWalletConnected && !isWalletLoading;

if (showConnectWallet) {
return (
Expand Down

0 comments on commit ee15586

Please sign in to comment.