you can't add an existing invoice.

This commit is contained in:
Bryce Covert
2018-07-30 09:23:56 -07:00
parent 5cac08437f
commit 9e00372857
5 changed files with 36 additions and 5 deletions

View File

@@ -85,6 +85,14 @@
(println "changing modal status" id "to")
(update-in db [:modal-state id] #(merge % state))))
(re-frame/reg-event-db
::modal-failed
(fn [db [_ id message]]
(println "CURRENT" (get-in db [:modal-state]))
(-> db
(assoc-in [:modal-state id :saving?] false)
(assoc-in [:modal-state id :error-message] message))))
(re-frame/reg-event-db
::modal-completed
(fn [db [_ id state]]