diff --git a/src/status_im/ui/components/camera.cljs b/src/status_im/ui/components/camera.cljs index f562c83d3f..9dffd936eb 100644 --- a/src/status_im/ui/components/camera.cljs +++ b/src/status_im/ui/components/camera.cljs @@ -22,7 +22,7 @@ (defn request-access-ios [then else] (-> (.checkVideoAuthorizationStatus default-camera) - (.then then) + (.then (fn [allowed?] (if allowed? (then) (else)))) (.catch else))) (defn camera [props] diff --git a/src/status_im/ui/screens/wallet/components/views.cljs b/src/status_im/ui/screens/wallet/components/views.cljs index f87fa1f587..3af651be77 100644 --- a/src/status_im/ui/screens/wallet/components/views.cljs +++ b/src/status_im/ui/screens/wallet/components/views.cljs @@ -21,7 +21,8 @@ [status-im.utils.ethereum.core :as ethereum] [status-im.utils.ethereum.tokens :as tokens] [status-im.utils.platform :as platform] - [status-im.ui.components.tooltip.views :as tooltip])) + [status-im.ui.components.tooltip.views :as tooltip] + [status-im.utils.utils :as utils])) (defn view-asset [symbol] [react/view @@ -157,7 +158,9 @@ (defn- request-camera-permissions [] (re-frame/dispatch [:request-permissions {:permissions [:camera] - :on-allowed #(re-frame/dispatch [:navigate-to :recipient-qr-code])}])) + :on-allowed #(re-frame/dispatch [:navigate-to :recipient-qr-code]) + :on-denied #(utils/show-popup (i18n/label :t/error) + (i18n/label :t/camera-access-error))}])) (defn- on-choose-recipient [contact-only?] (list-selection/show {:title (i18n/label :t/wallet-choose-recipient)