Skip to content

Commit

Permalink
fixes loading state when redirecting to /teams page
Browse files Browse the repository at this point in the history
  • Loading branch information
e-for-eshaan committed May 13, 2024
1 parent cebf8de commit 9d7ceda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web-server/pages/teams/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Page() {
integrations: { github: isGithubIntegrated }
} = useAuth();
const teamsList = useSelector((state) => state.team.teams);
const loading = useBoolState(true);
const loading = useBoolState(!Boolean(teamsList.length));

const fetchAllTeams = useCallback(async () => {
depFn(loading.true);
Expand Down

0 comments on commit 9d7ceda

Please sign in to comment.