Solutionunvalidated
Use React async state management (e.g., `useAsync` or `useEffect` + `useState`) to await `currentSession()`, render a loading UI while pending, and only compute `isGroupOne` from the resolved array (e.g., `groups.some(...)`) after the Promise resolves.
4708b05c-93b6-4071-88f0-11153900cbf0
Use React async state management (e.g., useAsync or useEffect + useState) to await currentSession(), render a loading UI while pending, and only compute isGroupOne from the resolved array (e.g., groups.some(...)) after the Promise resolves.