markers only show for scheduled games

This commit is contained in:
Owen Rees
2023-09-25 20:58:09 +02:00
parent 57eab6986d
commit 14084aa671
4 changed files with 180 additions and 182 deletions
+1
View File
@@ -99,6 +99,7 @@ const getTournaments = async () => {
latLng: { lat: t.coordinates[0], lng: t.coordinates[1] },
norm: t.norm_tournament,
pending: t.pending,
status: t.status,
};
});
} catch (error) {
+1 -1
View File
@@ -39,7 +39,7 @@ export const filteredTournamentsByTimeControlAtom = atom((get) => {
return tournaments.filter(
(tournament) =>
!tournament.pending &&
!tournament.pending && tournament.status === 'scheduled' &&
((tournament.timeControl === TimeControl.Classic && classic) ||
(tournament.timeControl === TimeControl.Rapid && rapid) ||
(tournament.timeControl === TimeControl.Blitz && blitz) ||