Fixed incorrect wallet on-open payload

Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
Julien Eluard 2019-04-04 08:21:30 +02:00
parent 4decedf5f6
commit 7dae2ecaf6
No known key found for this signature in database
GPG Key ID: 6FD7DB5437FCBEF6
1 changed files with 3 additions and 3 deletions

View File

@ -55,7 +55,7 @@
[toolbar/nav-button
(actions/back-white
#(re-frame/dispatch [:update-wallet-and-nav-back
(when on-close
(when (fn? on-close)
(on-close (create-payload address)))]))]
[toolbar/content-title {:color colors/white}
label]]
@ -64,8 +64,8 @@
(defn- setting->action [address {:keys [label on-open] :as m}]
{:label label
:action #(do
(when on-open
(on-open address))
(when (fn? on-open)
(on-open (create-payload address)))
(re-frame/dispatch [:navigate-to :wallet-settings-hook m]))})
(defview toolbar-view []