Skip to content

Commit

Permalink
More logs
Browse files Browse the repository at this point in the history
  • Loading branch information
renatodellosso committed Jun 26, 2024
1 parent 79105c8 commit bb178bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pages/[teamSlug]/[seasonSlug]/[competitonSlug]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ export default function Home(props: ResolvedUrlData) {
if (Object.keys(usersById).length === 0)
setLoadingUsers(true);

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

Expand Down

0 comments on commit bb178bd

Please sign in to comment.