Skip to content

Commit

Permalink
Trying to fix endless loading on match screen
Browse files Browse the repository at this point in the history
  • Loading branch information
renatodellosso committed Jun 26, 2024
1 parent d5db9e5 commit 2767ad6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/[teamSlug]/[seasonSlug]/[competitonSlug]/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ export default function Home(props: ResolvedUrlData) {
let matchesAssigned = true;
for (const report of reports) {
if (!report.user) {
console.log("No user assigned to report", report);
matchesAssigned = false;
break;
}
}

console.log("Matches assigned: " + matchesAssigned);
setMatchesAssigned(matchesAssigned);
}, [reports]);

Expand Down

0 comments on commit 2767ad6

Please sign in to comment.