Skip to content

Commit

Permalink
fix: fetchExtendedArenaGroups called at the wrong time
Browse files Browse the repository at this point in the history
  • Loading branch information
k0beLeenders committed Dec 11, 2024
1 parent fe8fbbf commit 80a0ba7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/marginfi-v2-trading/src/context/TradeProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
}
Expand Down

0 comments on commit 80a0ba7

Please sign in to comment.