Harden gameplay timing and map loading
This commit is contained in:
@@ -8,9 +8,9 @@ export function CatalogBrowser({ maps }: { maps: CardMap[] }) {
|
||||
const shown = maps.filter(
|
||||
(m) =>
|
||||
(source === "all" || m.source === source) &&
|
||||
(m.name + " " + m.description + " " + m.server?.name)
|
||||
(m.name + " " + m.description + " " + (m.server?.name ?? ""))
|
||||
.toLowerCase()
|
||||
.includes(query.toLowerCase()),
|
||||
.includes(query.trim().toLowerCase()),
|
||||
);
|
||||
return (
|
||||
<>
|
||||
@@ -33,6 +33,7 @@ export function CatalogBrowser({ maps }: { maps: CardMap[] }) {
|
||||
<button
|
||||
key={id}
|
||||
className={source === id ? "active" : ""}
|
||||
aria-pressed={source === id}
|
||||
onClick={() => setSource(id)}
|
||||
>
|
||||
{label}
|
||||
|
||||
Reference in New Issue
Block a user