diff --git a/packages/backend/src/apps/formsg/auth/decrypt-form-response.ts b/packages/backend/src/apps/formsg/auth/decrypt-form-response.ts index 358cb7982..7a29a3134 100644 --- a/packages/backend/src/apps/formsg/auth/decrypt-form-response.ts +++ b/packages/backend/src/apps/formsg/auth/decrypt-form-response.ts @@ -123,7 +123,7 @@ export async function decryptFormResponse( // omitted from the output. // Note: FormSG uses dot notation for field ids for MyInfo children // we replace with underscore to avoid issues when using lodash get. - parsedData[_id.replace('.', '_')] = { + parsedData[_id.replaceAll('.', '_')] = { order: index + 1, ...rest, }