adding more validation.

This commit is contained in:
BC
2018-07-31 17:55:57 -07:00
parent 271185690a
commit 2cc193a66f
5 changed files with 18 additions and 9 deletions

View File

@@ -344,7 +344,7 @@
(re-frame/reg-event-fx
::invoice-create-failed
(fn [{:keys [db]} [_ data]]
{:dispatch [::events/modal-failed ::new-invoice "That invoice already exists."]}))
{:dispatch [::events/modal-failed ::new-invoice (:message data)]}))
(re-frame/reg-event-fx
::invoice-created