Skip to content

Commit 884df74

Browse files
authored
Update page.tsx
1 parent 3ff60c8 commit 884df74

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/app/team/[id]/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ function ScoreSection({ teamId }: { teamId: string }) {
5858
enabled: !!teamId,
5959
staleTime: 0,
6060
});
61-
const [round, setRound] = useState(scores.length +1);
61+
const [round, setRound] = useState(scores.length);
6262
useEffect(()=> {
63-
setRound(scores.length + 1)
63+
setRound(scores.length)
6464
}, [scores])
6565
const createScoreMutation = useMutation({
6666
mutationFn: ({

0 commit comments

Comments
 (0)