Skip to content

Commit

Permalink
Merge pull request #6004 from jwarwick/legality
Browse files Browse the repository at this point in the history
Only list decks legal for the specified format in the deck selector
  • Loading branch information
jwarwick authored Aug 2, 2021
2 parents db8f566 + d628c4b commit 9200f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cljs/nr/gamelobby.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@
[:div
(doall
(for [deck (->> @decks
(filter #(and (same-side? %) (or (legal-deck? %) (= format "casual"))))
(filter #(and (same-side? %) (or (legal-deck? % format) (= format "casual"))))
(sort-by (juxt legal-deck? :date) >))]
^{:key (:_id deck)}
[:div.deckline {:on-click #(do (ws/ws-send! [:lobby/deck (:_id deck)])
Expand Down

0 comments on commit 9200f50

Please sign in to comment.