mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-07 11:46:09 -05:00
fix team page country count
This commit is contained in:
@@ -66,7 +66,9 @@ const TeamsPage: React.FC<Props> = ({ teams }) => {
|
||||
<option value="ALL">All ({teams.length})</option>
|
||||
{teams
|
||||
.flatMap((team) =>
|
||||
team.roster.map((user) => user.profile?.country)
|
||||
Array.from(
|
||||
new Set(team.roster.map((user) => user.profile?.country))
|
||||
)
|
||||
)
|
||||
.reduce((acc: [string, number][], cur) => {
|
||||
if (!cur) return acc;
|
||||
|
||||
Reference in New Issue
Block a user