Skip to content

Commit

Permalink
fix: remove error block
Browse files Browse the repository at this point in the history
  • Loading branch information
wanlingt committed Nov 16, 2023
1 parent 253dd25 commit fb415fc
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -430,30 +430,6 @@ export const validateStorageSubmission = async (
req.formsg.filteredResponses = responses
return { parsedResponses, form: formDef }
})
.mapErr((error) => {
// TODO(FRM-1318): Set DB flag to true to harden submission validation after validation has similar error rates as email mode forms.
if (
req.formsg.featureFlags.includes(
featureFlags.encryptionBoundaryShiftHardValidation,
)
) {
logger.error({
message: 'Error processing responses',
meta: logMeta,
error,
})

return error
}
logger.warn({
message:
'Error processing responses, but proceeding with submission as submission have been validated client-side',
meta: logMeta,
error,
})
req.formsg.filteredResponses = req.body.responses
return error
})
.andThen(({ parsedResponses, form }) => {
// Validate MyInfo responses
const { authType } = form
Expand Down

0 comments on commit fb415fc

Please sign in to comment.