fix: go back to forms if not team captain
This commit is contained in:
parent
2195e7324d
commit
003f401320
@ -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: "",
|
||||
|
Loading…
x
Reference in New Issue
Block a user