From ce76694823ddb9ebd0c69dd383b91095749ab84f Mon Sep 17 00:00:00 2001 From: Fazal Khan Date: Thu, 16 May 2024 17:24:22 +0100 Subject: [PATCH] fix(app): fix error from pasting in code --- .../submit-additional-submission-options.service.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/services/return-requirements/submit-additional-submission-options.service.js b/app/services/return-requirements/submit-additional-submission-options.service.js index 4977999cdb..72a3bfa92a 100644 --- a/app/services/return-requirements/submit-additional-submission-options.service.js +++ b/app/services/return-requirements/submit-additional-submission-options.service.js @@ -55,12 +55,13 @@ async function go (sessionId, payload, yar) { /** * When a single agreement and exception is checked by the user, it returns as a string. When multiple agreements and - * exceptions are checked, the 'agreementsExceptions' is returned as an array. This function works to make those single - * selected string 'agreementsExceptions' into an array for uniformity. + * exceptions are checked, the 'additionalSubmissionOptions' is returned as an array. + * This function works to make those single + * selected string 'additionalSubmissionOptions' into an array for uniformity. */ function _handleOneOptionSelected (payload) { - if (!Array.isArray(payload.agreementsExceptions)) { - payload.agreementsExceptions = [payload.agreementsExceptions] + if (!Array.isArray(payload.additionalSubmissionOptions)) { + payload.additionalSubmissionOptions = [payload.additionalSubmissionOptions] } }