Fix showing inactive teams in /equipes

This commit is contained in:
pikiou 2023-05-26 08:36:27 +02:00
parent 68919fc55b
commit b6533795c4

View File

@ -8,9 +8,11 @@ const TeamList: React.FC = (): JSX.Element | null => {
const teams = useSelector(selectSortedTeams)
if (!teams || teams.length === 0) return null
const shownTeams = teams.filter((team) => team?.status !== "inactive")
return (
<ul className={styles.teamList}>
{teams.map((team: any) => (
{shownTeams.map((team: any) => (
<TeamItem team={team} key={team.id} />
))}
</ul>