Skip to content

Commit

Permalink
Debug active pool
Browse files Browse the repository at this point in the history
  • Loading branch information
nikitayutanov committed Sep 9, 2024
1 parent a7b4eb1 commit cb41470
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/contexts/Pools/ActivePool/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
Expand Down

0 comments on commit cb41470

Please sign in to comment.