Skip to content

Commit

Permalink
fix: add default values for sendMrfOutcomeEmails isApproval and isRej…
Browse files Browse the repository at this point in the history
…ected
  • Loading branch information
kevin9foong committed Sep 5, 2024
1 parent a0c7af2 commit 0e199c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,6 @@ const updateMultirespondentSubmission = async (
responses,
submissionId,
isApproval: checkIsFormApproval(form),
isRejected: false,
})
} catch (err) {
logger.error({
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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<true, InvalidWorkflowTypeError | MailSendError> => {
const logMeta = {
action: 'sendMrfOutcomeEmails',
Expand Down

0 comments on commit 0e199c4

Please sign in to comment.