looking good.

This commit is contained in:
Bryce Covert
2017-12-08 08:53:34 -08:00
parent dc5eb781a9
commit 70858fd424
7 changed files with 76 additions and 56 deletions

View File

@@ -18,9 +18,9 @@
(re-frame/reg-event-db
::imported-invoices
(fn [db [_ new-invoices]]
(update-in db [:invoices] into new-invoices)))
(assoc-in db [:invoices] new-invoices)))
(re-frame/reg-event-db
::received-invoices
(fn [db [_ new-invoices]]
(update-in db [:unpaid-invoices] into new-invoices)))
(fn [db [_ type new-invoices]]
(assoc-in db [:invoices type] new-invoices)))