fix type warning
This commit is contained in:
@@ -40,7 +40,7 @@ export const Join = () => {
|
|||||||
);
|
);
|
||||||
if (r.detail) setError(r.detail);
|
if (r.detail) setError(r.detail);
|
||||||
else {
|
else {
|
||||||
setTeams({ ...teams, activeTeam: teamID });
|
teamID && teams && setTeams({ ...teams, activeTeam: teamID });
|
||||||
navigate("/", { replace: true });
|
navigate("/", { replace: true });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user