From db5108c99ed5bb111f8c6eac24e2796962635fc7 Mon Sep 17 00:00:00 2001 From: Dhivya Pattabhiraman Date: Wed, 24 Jan 2024 14:43:35 +0000 Subject: [PATCH] Applied review comment. --- .../profile-identity-checks/controllers/report.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/profile-identity-checks/controllers/report.controller.js b/examples/profile-identity-checks/controllers/report.controller.js index 3191a064..4b22e7c2 100644 --- a/examples/profile-identity-checks/controllers/report.controller.js +++ b/examples/profile-identity-checks/controllers/report.controller.js @@ -72,7 +72,7 @@ module.exports = async (req, res) => { ? (profile && profile.getAttributeById(document_images_attribute_id)) : null)) .filter((documentImagesAttribute) => documentImagesAttribute); }); - documentImagesAttributes = [].concat(...documentImagesAttributesArray); + documentImagesAttributes = documentImagesAttributesArray.flat(); // Selfie image (if any) const selfieAttributeArray = verificationReports.map((report) => {