progress on making saving work better for accounts.

This commit is contained in:
Bryce Covert
2020-09-02 07:57:56 -07:00
parent 0297304cfc
commit f40ff431dd
7 changed files with 100 additions and 97 deletions

View File

@@ -74,6 +74,7 @@
(re-frame/reg-event-db
::change
(fn [db [_ form & path-pairs]]
(reduce
(fn [db [path value]]
(assoc-in db (into [::forms form :data] path) value))
@@ -82,6 +83,7 @@
(defn change-handler [form customize-fn]
(fn [db [_ & path-pairs]]
(reduce
(fn [db [path value]]
(let [updated (assoc-in db (into [::forms form :data] path) value)]