Skip to content

Commit ee0d5e1

Browse files
committed
fix: fallback to :printed-title on preview
Cards added to the score area as agenda via `convert-to-agenda` don't have a title, but they have a printed title. Fix #8562 Fix #8547
1 parent 387c100 commit ee0d5e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cljs/nr/gameboard/card_preview.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
(defn put-game-card-in-channel
1919
[card channel]
20-
(if-let [server-card (get-in @app-state [:all-cards-and-flips (:title card)])]
20+
(if-let [server-card (get-in @app-state [:all-cards-and-flips (or (:title card) (:printed-title card))])]
2121
(put! channel (merge server-card card))
2222
(put! channel card))
2323
nil)

0 commit comments

Comments
 (0)