diff --git a/modules/simple_forms_api/app/services/simple_forms_api/s3/submission_archive_builder.rb b/modules/simple_forms_api/app/services/simple_forms_api/s3/submission_archive_builder.rb index d1c1e94e8d8..c5641a4f54e 100644 --- a/modules/simple_forms_api/app/services/simple_forms_api/s3/submission_archive_builder.rb +++ b/modules/simple_forms_api/app/services/simple_forms_api/s3/submission_archive_builder.rb @@ -46,7 +46,7 @@ def valid_submission_data?(data) def process_submission_files write_pdf - write_attachments unless attachments && attachments.empty? + write_attachments if attachments&.any? write_manifest if include_manifest write_metadata rescue => e