Skip to content

Commit

Permalink
Fix receipt in json downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
dsamojlenko authored and Vivian Nobrega committed Apr 16, 2024
1 parent 19f8198 commit 53ca5d1
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,21 +237,21 @@ export const getSubmissionsByFormat = async ({
};
case DownloadFormat.HTML_AGGREGATED:
revalidate && revalidateNewTab();
return htmlAggregatedTransform(formResponse, lang);
return await htmlAggregatedTransform(formResponse, lang);

case DownloadFormat.HTML:
revalidate && revalidateNewTab();
return htmlTransform(formResponse);
return await htmlTransform(formResponse);

case DownloadFormat.HTML_ZIPPED: {
revalidate && revalidateNewTab();
return zipTransform(formResponse, lang);
return await zipTransform(formResponse, lang);
}

case DownloadFormat.JSON:
revalidate && revalidateNewTab();
return {
receipt: htmlAggregatedTransform(formResponse, lang),
receipt: await htmlAggregatedTransform(formResponse, lang),
responses: jsonTransform(formResponse),
};

Expand Down

0 comments on commit 53ca5d1

Please sign in to comment.