Norms filter

This commit is contained in:
Timothy Armes
2023-07-17 11:51:10 +02:00
parent d3afc1d1f4
commit 22b8724e55
10 changed files with 98 additions and 11 deletions
+2
View File
@@ -15,6 +15,7 @@ export interface TournamentData {
tournament: string;
url: string;
time_control: "Cadence Lente" | "Rapide" | "Blitz" | string;
norm_tournament: boolean;
date: string;
coordinates: [number, number];
}
@@ -58,6 +59,7 @@ const getTournaments = async () => {
_id: t._id.toString(),
timeControl: tcMap[t.time_control] ?? TimeControl.Other,
latLng: { lat: t.coordinates[0], lng: t.coordinates[1] },
norm: t.norm_tournament,
}));
} catch (error) {
errorLog(error);