Skip to content

Commit

Permalink
fix(app): fix error from pasting in code
Browse files Browse the repository at this point in the history
  • Loading branch information
Demwunz committed May 16, 2024
1 parent 747d4a1 commit ce76694
Showing 1 changed file with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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]
}
}

Expand Down

0 comments on commit ce76694

Please sign in to comment.