diff --git a/src/app/modules/submission/multirespondent-submission/multirespondent-submission.controller.ts b/src/app/modules/submission/multirespondent-submission/multirespondent-submission.controller.ts index b863c9ed69..a44826346c 100644 --- a/src/app/modules/submission/multirespondent-submission/multirespondent-submission.controller.ts +++ b/src/app/modules/submission/multirespondent-submission/multirespondent-submission.controller.ts @@ -567,7 +567,6 @@ const updateMultirespondentSubmission = async ( responses, submissionId, isApproval: checkIsFormApproval(form), - isRejected: false, }) } catch (err) { logger.error({ diff --git a/src/app/modules/submission/multirespondent-submission/multirespondent-submission.service.ts b/src/app/modules/submission/multirespondent-submission/multirespondent-submission.service.ts index 8dceec6eca..e03657cb0d 100644 --- a/src/app/modules/submission/multirespondent-submission/multirespondent-submission.service.ts +++ b/src/app/modules/submission/multirespondent-submission/multirespondent-submission.service.ts @@ -121,15 +121,15 @@ export const sendMrfOutcomeEmails = ({ form, responses, submissionId, - isApproval, - isRejected, + isApproval = false, + isRejected = false, }: { currentStepNumber: number form: IPopulatedMultirespondentForm responses: FieldResponsesV3 submissionId: string - isApproval: boolean - isRejected: boolean + isApproval?: boolean + isRejected?: boolean }): ResultAsync => { const logMeta = { action: 'sendMrfOutcomeEmails',