From 52cc220f210fcbedb64e2055ab7c7c1cd33261f7 Mon Sep 17 00:00:00 2001 From: Julien Eluard Date: Wed, 7 Feb 2018 14:08:06 +0100 Subject: [PATCH] [ISSUE #3246] Fixed regression when opening URL Signed-off-by: Eric Dvorsak --- src/status_im/ui/components/list_selection.cljs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/status_im/ui/components/list_selection.cljs b/src/status_im/ui/components/list_selection.cljs index ad24427833..8ff640f4a6 100644 --- a/src/status_im/ui/components/list_selection.cljs +++ b/src/status_im/ui/components/list_selection.cljs @@ -29,8 +29,8 @@ (defn browse [link] (show {:title (i18n/label :t/browsing-title) - :options [{:text (i18n/label :t/browsing-open-in-browser) - :action (re-frame/dispatch [:open-browser {:url link}])} - {:text (i18n/label :t/browsing-open-in-web-browser) - :action (.openURL react/linking link)}] + :options [{:label (i18n/label :t/browsing-open-in-browser) + :action #(re-frame/dispatch [:open-browser {:url link}])} + {:label (i18n/label :t/browsing-open-in-web-browser) + :action #(.openURL react/linking link)}] :cancel-text (i18n/label :t/browsing-cancel)}))