diff --git a/pages/t/[team].tsx b/pages/t/[team].tsx index 1386616be..38fa311cc 100644 --- a/pages/t/[team].tsx +++ b/pages/t/[team].tsx @@ -98,7 +98,7 @@ const getTeamXPInfo = (roster: NonNullable["roster"]) => { }; const TeamPage: React.FC = (props) => { - const { secondaryBgColor, themeColorHex } = useMyTheme(); + const { secondaryBgColor } = useMyTheme(); const { data } = useSWR(`/api/teams/${props.team!.id}`, { initialData: props.team!, }); diff --git a/pages/t/index.tsx b/pages/t/index.tsx index 57f4cf1e1..fd00ee1e1 100644 --- a/pages/t/index.tsx +++ b/pages/t/index.tsx @@ -45,7 +45,7 @@ const TeamsPage = ({ teams }: Props) => { return ( <> - {!isInTeam && } + {!isInTeam && user && } {teams.length > 0 && ( @@ -137,8 +137,8 @@ const TeamsPage = ({ teams }: Props) => { {team.countries.map((country) => ( - - + + ))}