fix type warning

This commit is contained in:
2026-01-03 17:04:58 +01:00
parent 5c76a60df1
commit 039b43be8e

View File

@@ -40,7 +40,7 @@ export const Join = () => {
);
if (r.detail) setError(r.detail);
else {
setTeams({ ...teams, activeTeam: teamID });
teamID && teams && setTeams({ ...teams, activeTeam: teamID });
navigate("/", { replace: true });
}
}