looking good.
This commit is contained in:
@@ -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)))
|
||||
|
||||
Reference in New Issue
Block a user