Skip to content

Commit

Permalink
fix: use replaceAll, not replace
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinkim-ogp authored and pregnantboy committed Dec 23, 2024
1 parent 2c07be6 commit e878f0d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
Expand Down

0 comments on commit e878f0d

Please sign in to comment.