Fixed incorrect wallet on-open payload
Signed-off-by: Julien Eluard <julien.eluard@gmail.com>
This commit is contained in:
parent
4decedf5f6
commit
7dae2ecaf6
|
@ -55,7 +55,7 @@
|
||||||
[toolbar/nav-button
|
[toolbar/nav-button
|
||||||
(actions/back-white
|
(actions/back-white
|
||||||
#(re-frame/dispatch [:update-wallet-and-nav-back
|
#(re-frame/dispatch [:update-wallet-and-nav-back
|
||||||
(when on-close
|
(when (fn? on-close)
|
||||||
(on-close (create-payload address)))]))]
|
(on-close (create-payload address)))]))]
|
||||||
[toolbar/content-title {:color colors/white}
|
[toolbar/content-title {:color colors/white}
|
||||||
label]]
|
label]]
|
||||||
|
@ -64,8 +64,8 @@
|
||||||
(defn- setting->action [address {:keys [label on-open] :as m}]
|
(defn- setting->action [address {:keys [label on-open] :as m}]
|
||||||
{:label label
|
{:label label
|
||||||
:action #(do
|
:action #(do
|
||||||
(when on-open
|
(when (fn? on-open)
|
||||||
(on-open address))
|
(on-open (create-payload address)))
|
||||||
(re-frame/dispatch [:navigate-to :wallet-settings-hook m]))})
|
(re-frame/dispatch [:navigate-to :wallet-settings-hook m]))})
|
||||||
|
|
||||||
(defview toolbar-view []
|
(defview toolbar-view []
|
||||||
|
|
Loading…
Reference in New Issue