From 80a0ba7e3ba71e78b56789aec25e6a745a51b75e Mon Sep 17 00:00:00 2001 From: Kobe Date: Wed, 11 Dec 2024 11:59:30 +0100 Subject: [PATCH] fix: fetchExtendedArenaGroups called at the wrong time --- apps/marginfi-v2-trading/src/context/TradeProvider.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/marginfi-v2-trading/src/context/TradeProvider.tsx b/apps/marginfi-v2-trading/src/context/TradeProvider.tsx index a83cc06d55..d5c3f3d5cb 100644 --- a/apps/marginfi-v2-trading/src/context/TradeProvider.tsx +++ b/apps/marginfi-v2-trading/src/context/TradeProvider.tsx @@ -40,7 +40,7 @@ export const TradePovider: React.FC<{ }, [fetchArenaGroups, hydrationComplete, setHydrationComplete]); React.useEffect(() => { - if (initialized || connected) { + if (initialized && connected) { console.log("fetching extended arena groups"); fetchExtendedArenaGroups({ connection, wallet }); }