diff --git a/src/contexts/Pools/ActivePool/index.tsx b/src/contexts/Pools/ActivePool/index.tsx index 8d53be1364..0db85203d5 100644 --- a/src/contexts/Pools/ActivePool/index.tsx +++ b/src/contexts/Pools/ActivePool/index.tsx @@ -111,6 +111,15 @@ export const ActivePoolProvider = ({ children }: { children: ReactNode }) => { // Membership takes priority, followed by the first pool the account has a role in. Falls back // to `null` if no active roles are found. const initialActivePoolId = membership?.poolId || accountPoolIds[0] || null; + console.log('membership?.poolId (first priority): ', membership?.poolId); + + console.log('accountPoolIds[0] (second priority): ', accountPoolIds[0]); + + console.log( + 'assignActivePoolId - initialActivePoolId: ', + initialActivePoolId + ); + if (initialActivePoolId && !activePool) { setActivePoolId(String(initialActivePoolId)); }