mirror of
https://github.com/TheRealOwenRees/echecsfrance.git
synced 2026-07-23 04:26:57 +00:00
Fix norms
This commit is contained in:
@@ -101,8 +101,11 @@ const TimeControlGroup = ({ timeControl, colour }: TimeControlGroupProps) => {
|
||||
const expandedClusterMarkerRef = useRef<L.MarkerCluster | null>(null);
|
||||
|
||||
const filteredTournaments = useMemo(
|
||||
() => tournaments.filter((t) => t.timeControl === timeControl),
|
||||
[timeControl, tournaments],
|
||||
() =>
|
||||
tournaments
|
||||
.filter((t) => t.timeControl === timeControl)
|
||||
.filter((t) => (normsOnly ? t.norm : true)),
|
||||
[normsOnly, timeControl, tournaments],
|
||||
);
|
||||
|
||||
const hoveredListTournamentId = useAtomValue(
|
||||
|
||||
Reference in New Issue
Block a user