fix: go back to forms if not team captain

This commit is contained in:
julius 2025-05-22 12:45:49 +02:00
parent 2195e7324d
commit 003f401320
Signed by: julius
GPG Key ID: C80A63E6A5FD7092

View File

@ -12,7 +12,7 @@ const TeamPanel = () => {
user?.scopes.includes(`team:${teams?.activeTeam}`) ||
teams?.activeTeam === 42 ||
navigate("/", { replace: true });
}, [user]);
}, [user, teams]);
const newPlayerTemplate = {
id: 0,
username: "",