Include player counts in results payload
This commit is contained in:
@@ -263,7 +263,7 @@ function buildResultMeta(r) {
|
||||
const hasPlayers = r.minPlayers || r.maxPlayers;
|
||||
const players = hasPlayers
|
||||
? t("card.players", { min: r.minPlayers ?? "?", max: r.maxPlayers ?? "?" })
|
||||
: null;
|
||||
: "wtf";
|
||||
const bits = [r.genre, players].filter(Boolean);
|
||||
if (bits.length === 0) return "";
|
||||
return `<div class="muted small">${bits.join(" • ")}</div>`;
|
||||
|
||||
Reference in New Issue
Block a user