Replace 1h KO with a catch all category - display only when required

This commit is contained in:
Timothy Armes
2023-07-07 09:42:05 +02:00
parent 88e75511d7
commit d8a5b4393a
10 changed files with 67 additions and 47 deletions
+3 -3
View File
@@ -27,7 +27,7 @@ import {
classicAtom,
rapidAtom,
blitzAtom,
oneHourKOAtom,
otherAtom,
} from "@/app/atoms";
import Legend from "./Legend";
@@ -249,7 +249,7 @@ export default function TournamentMap() {
const classic = useAtomValue(classicAtom);
const rapid = useAtomValue(rapidAtom);
const blitz = useAtomValue(blitzAtom);
const other = useAtomValue(oneHourKOAtom);
const other = useAtomValue(otherAtom);
useEffect(() => {
if (hoveredListTournamentId === null) {
@@ -300,7 +300,7 @@ export default function TournamentMap() {
<TimeControlGroup timeControl={TimeControl.Blitz} colour="yellow" />
)}
{other && (
<TimeControlGroup timeControl={TimeControl.KO} colour="red" />
<TimeControlGroup timeControl={TimeControl.Other} colour="red" />
)}
</MapContainer>