Skip to content

Commit

Permalink
only show open decklist span when not using precons
Browse files Browse the repository at this point in the history
  • Loading branch information
NBKelly committed Oct 22, 2024
1 parent 14f02f6 commit 42c18e1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/cljs/nr/game_row.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -185,9 +185,8 @@
(when precon
[:span.format-precon-deck-names (tr (:tr-underline (matchup-by-key precon)))]))

(defn- open-decklists-span [open-decklists]
(js/console.log (str "open: " open-decklists))
(when open-decklists
(defn- open-decklists-span [precon open-decklists]
(when (and open-decklists (not precon))
[:span.open-decklists (str " " (tr [:lobby.open-decklists-b] "(open decklists)"))]))

(defn game-format [{fmt :format singleton? :singleton precon :precon open-decklists :open-decklists}]
Expand All @@ -196,7 +195,7 @@
[:span.format-type (tr-format (slug->format fmt "Unknown"))]
[precon-span precon]
[:span.format-singleton (str (when singleton? (str " " (tr [:lobby.singleton-b "(singleton)"]))))]
[open-decklists-span open-decklists]
[open-decklists-span precon open-decklists]
[precon-under-span precon]])

(defn- time-since
Expand Down

0 comments on commit 42c18e1

Please sign in to comment.