mirror of
https://github.com/status-im/status-react.git
synced 2025-01-23 01:09:49 +00:00
bug #5243 - using correct error code for image picker compononent
Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
parent
e09e509556
commit
d7bd95dc64
@ -136,7 +136,7 @@
|
||||
(def image-picker-class js-dependencies/image-crop-picker)
|
||||
|
||||
(defn show-access-error [o]
|
||||
(when (= "ERROR_PICKER_UNAUTHORIZED_KEY" (object/get o "code")) ; Do not show error when user cancel selection
|
||||
(when (= "E_PERMISSION_MISSING" (object/get o "code"))
|
||||
(utils/show-popup (i18n/label :t/error)
|
||||
(i18n/label :t/photos-access-error))))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user