update value-usd key in client as it is now renamed on server

This commit is contained in:
Martin Klepsch 2018-03-30 11:37:32 +02:00 committed by Tetiana Churikova
parent 483f65ae1f
commit 28ce4db049
1 changed files with 1 additions and 1 deletions

View File

@ -88,7 +88,7 @@
:<- [:owner-bounties] :<- [:owner-bounties]
(fn [owner-bounties _] (fn [owner-bounties _]
(let [sum-dollars (fn sum-dollars [bounties] (let [sum-dollars (fn sum-dollars [bounties]
(reduce + (map #(js/parseFloat (:value_usd %)) bounties))) (reduce + (map #(js/parseFloat (:value-usd %)) bounties)))
{:keys [paid unpaid]} (group-by #(if (:paid? %) :paid :unpaid) {:keys [paid unpaid]} (group-by #(if (:paid? %) :paid :unpaid)
(vals owner-bounties))] (vals owner-bounties))]
{:paid {:count (count paid) {:paid {:count (count paid)