Skip to content

Commit

Permalink
Add settings synchronization
Browse files Browse the repository at this point in the history
  • Loading branch information
audriu committed Apr 11, 2022
1 parent 56a1df0 commit cb9b461
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/status_im/multiaccounts/update/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,10 @@

(fx/defn optimistic
[{:keys [db] :as cofx} setting setting-value]
(let [current-multiaccount (:multiaccount db)]
(let [current-multiaccount (:multiaccount db)
setting-value (if (= :currency setting)
(keyword setting-value)
setting-value)]
{:db (if setting-value
(assoc-in db [:multiaccount setting] setting-value)
(update db :multiaccount dissoc setting))}))
Expand Down
6 changes: 3 additions & 3 deletions status-go-version.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"_comment": "Instead use: scripts/update-status-go.sh <rev>",
"owner": "status-im",
"repo": "status-go",
"version": "v0.98.1",
"commit-sha1": "3050106595104c16083a8a155d7b2167e7fda798",
"src-sha256": "0dab072wmajdnp3hiyycxg1wn14a7l142z3768vwc2mz13nnld2r"
"version": "41d41c4b132ce85cb4cad12cc8596ddc58c0de5b",
"commit-sha1": "41d41c4b132ce85cb4cad12cc8596ddc58c0de5b",
"src-sha256": "02impw4rkkb1f11hx320lmij8mjshqiybm0dfzzcxl3iq2ri24ci"
}

0 comments on commit cb9b461

Please sign in to comment.