Skip to content

Commit

Permalink
Even more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
renatodellosso committed Jun 26, 2024
1 parent 6090aab commit b9c3d45
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pages/[teamSlug]/[seasonSlug]/[competitonSlug]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,7 @@ export default function Home(props: ResolvedUrlData) {

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

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

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

Expand Down

0 comments on commit b9c3d45

Please sign in to comment.