refactor(charts): unify on Chart.js, remove Chartist #10
@@ -1002,6 +1002,9 @@
|
||||
(let [{:keys [base-amount remainder]} (calculate-spread (:transaction-account/amount account) (count locations))]
|
||||
(map-indexed (fn [idx _]
|
||||
(assoc account
|
||||
:db/id (if (= idx 0)
|
||||
(:db/id account)
|
||||
(random-tempid))
|
||||
:transaction-account/amount (+ base-amount (if (< idx remainder) 1 0))
|
||||
:transaction-account/location (nth locations idx)))
|
||||
locations))
|
||||
|
||||
Reference in New Issue
Block a user