diff --git a/camera/camera.ios.ts b/camera/camera.ios.ts index 6887901d9..23c57dee6 100644 --- a/camera/camera.ios.ts +++ b/camera/camera.ios.ts @@ -95,7 +95,7 @@ export var takePicture = function (options): Promise { } if (reqWidth && reqHeight) { listener = UIImagePickerControllerDelegateImpl.new().initWithCallbackAndOptions(resolve, { width: reqWidth, height: reqHeight, keepAspectRatio: keepAspectRatio, saveToGallery: saveToGallery }); - } if (saveToGallery) { + } else if (saveToGallery) { listener = UIImagePickerControllerDelegateImpl.new().initWithCallbackAndOptions(resolve, { saveToGallery: saveToGallery }); } else {