parent
1d298d0a5d
commit
b47f53777d
|
@ -6,11 +6,12 @@
|
||||||
|
|
||||||
(defn collectible-balance
|
(defn collectible-balance
|
||||||
[collectible]
|
[collectible]
|
||||||
(-> collectible
|
(let [balance (-> collectible
|
||||||
:ownership
|
:ownership
|
||||||
first
|
first
|
||||||
:balance
|
:balance
|
||||||
js/parseInt))
|
js/parseInt)]
|
||||||
|
(if (js/Number.isNaN balance) 0 balance)))
|
||||||
|
|
||||||
(def supported-collectible-types
|
(def supported-collectible-types
|
||||||
#{"image/jpeg"
|
#{"image/jpeg"
|
||||||
|
|
Loading…
Reference in New Issue