From 7dae2ecaf6fb3dadf7d9e192ac1948b483f4b3b0 Mon Sep 17 00:00:00 2001 From: Julien Eluard Date: Thu, 4 Apr 2019 08:21:30 +0200 Subject: [PATCH] Fixed incorrect wallet on-open payload Signed-off-by: Julien Eluard --- src/status_im/ui/screens/wallet/settings/views.cljs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/status_im/ui/screens/wallet/settings/views.cljs b/src/status_im/ui/screens/wallet/settings/views.cljs index 9237e19389..62b2080adb 100644 --- a/src/status_im/ui/screens/wallet/settings/views.cljs +++ b/src/status_im/ui/screens/wallet/settings/views.cljs @@ -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 []