bug #5243 - using correct error code for image picker compononent

Signed-off-by: Goran Jovic <goranjovic@gmail.com>
This commit is contained in:
Goran Jovic 2018-08-17 12:57:56 +02:00
parent e09e509556
commit d7bd95dc64
No known key found for this signature in database
GPG Key ID: D429D1A9B2EB8A8E
1 changed files with 1 additions and 1 deletions

View File

@ -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))))