diff --git a/ios/ImageCropPicker.m b/ios/ImageCropPicker.m index 8adb4a937..f8fc58846 100644 --- a/ios/ImageCropPicker.m +++ b/ios/ImageCropPicker.m @@ -579,8 +579,8 @@ - (void) processSingleImagePick:(UIImage*)image withViewController:(UIViewContro // Alert.alert in the .then() handler. [viewController dismissViewControllerAnimated:YES completion:[self waitAnimationEnd:^{ self.resolve([self createAttachmentResponse:filePath - withLocalIdentifier: localIdentifier - withFilename: filename + withLocalIdentifier:(localIdentifier) ? localIdentifier : @"" + withFilename:(filename) ? filename : @"" withWidth:imageResult.width withHeight:imageResult.height withMime:imageResult.mime