We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2b5a336 commit 1444438Copy full SHA for 1444438
src/cljs/nr/gameboard/board.cljs
@@ -59,7 +59,11 @@
59
"stock")
60
card (if (or (:face card) (:images card)) card (get @all-cards (get-title card)))
61
images (image-or-face card)]
62
- (get-image-path images (keyword lang) (keyword res) (keyword art))))
+ (if (sequential? art)
63
+ (let [art-urls (get-image-path images (keyword lang) (keyword res) (keyword (first art)))
64
+ chosen-art (nth art-urls (second art))]
65
+ [chosen-art])
66
+ (get-image-path images (keyword lang) (keyword res) (keyword art)))))
67
68
69
(defonce button-channel (chan))
0 commit comments