We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3ff60c8 commit 884df74Copy full SHA for 884df74
1 file changed
src/app/team/[id]/page.tsx
@@ -58,9 +58,9 @@ function ScoreSection({ teamId }: { teamId: string }) {
58
enabled: !!teamId,
59
staleTime: 0,
60
});
61
- const [round, setRound] = useState(scores.length +1);
+ const [round, setRound] = useState(scores.length);
62
useEffect(()=> {
63
- setRound(scores.length + 1)
+ setRound(scores.length)
64
}, [scores])
65
const createScoreMutation = useMutation({
66
mutationFn: ({
0 commit comments