From 8a789c41a232e53df1c882eb43c8b9c59dae4858 Mon Sep 17 00:00:00 2001 From: tienifr Date: Fri, 28 Apr 2023 12:16:15 +0700 Subject: [PATCH] fix: dev error when not grant camera permission on native --- src/components/AttachmentPicker/index.native.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/AttachmentPicker/index.native.js b/src/components/AttachmentPicker/index.native.js index fed0957e8fd8..5c7093cbab32 100644 --- a/src/components/AttachmentPicker/index.native.js +++ b/src/components/AttachmentPicker/index.native.js @@ -194,7 +194,7 @@ class AttachmentPicker extends Component { switch (response.errorCode) { case 'permission': this.showPermissionsAlert(); - break; + return resolve(); default: this.showGeneralAlert(); break;