localized team names
This commit is contained in:
@@ -5,7 +5,10 @@ import { Team, ThirdPlaceRow } from "@/lib/types";
|
||||
export default function ThirdPlace({
|
||||
rows, teams,
|
||||
}: { rows: ThirdPlaceRow[]; teams: Team[] }) {
|
||||
const name = (id: string) => teams.find((t) => t.id === id)?.name ?? id;
|
||||
const name = (id: string) => {
|
||||
const t = teams.find((t) => t.id === id);
|
||||
return t?.localisedName ?? t?.name ?? id;
|
||||
};
|
||||
|
||||
return (
|
||||
<div className="third-wrap">
|
||||
|
||||
Reference in New Issue
Block a user