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}`) ||
|
user?.scopes.includes(`team:${teams?.activeTeam}`) ||
|
||||||
teams?.activeTeam === 42 ||
|
teams?.activeTeam === 42 ||
|
||||||
navigate("/", { replace: true });
|
navigate("/", { replace: true });
|
||||||
}, [user]);
|
}, [user, teams]);
|
||||||
const newPlayerTemplate = {
|
const newPlayerTemplate = {
|
||||||
id: 0,
|
id: 0,
|
||||||
username: "",
|
username: "",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user