Skip to content

Commit

Permalink
Fix team creation page
Browse files Browse the repository at this point in the history
  • Loading branch information
renatodellosso committed Jan 29, 2025
1 parent 3ce59f3 commit 48c36bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/createTeam.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default function CreateTeam() {
if (data) setTeam({ ...team, name: data.name });
setError("");
});
}, [team]);
}, [team.number, team.league]);

Check warning on line 80 in pages/createTeam.tsx

View workflow job for this annotation

GitHub Actions / ci / lint

React Hook useEffect has a missing dependency: 'team'. Either include it or remove the dependency array. You can also do a functional update 'setTeam(t => ...)' if you only need 'team' in the 'setTeam' call

return (
<Container
Expand Down

0 comments on commit 48c36bb

Please sign in to comment.