Skip to content

Commit

Permalink
Less logging, but the bug is fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
renatodellosso committed Jun 26, 2024
1 parent bb178bd commit 43425d5
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions pages/[teamSlug]/[seasonSlug]/[competitonSlug]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,10 @@ export default function Home(props: ResolvedUrlData) {

useEffect(() => {
const loadUsers = async () => {
console.log("Loading users...");
if (Object.keys(usersById).length === 0)
setLoadingUsers(true);

if (!team || (!team.scouters && !team.subjectiveScouters)) {
console.log("No scouters");
return;
}

Expand All @@ -216,7 +214,6 @@ export default function Home(props: ResolvedUrlData) {
}

setUsersById(newUsersById);
console.log("Loaded users");
setLoadingUsers(false);
};

Expand Down

0 comments on commit 43425d5

Please sign in to comment.