Skip to content

Commit

Permalink
fix: replace message
Browse files Browse the repository at this point in the history
  • Loading branch information
giuliaghisini committed Apr 16, 2024
1 parent c1762da commit 8982698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/FormResult.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const messages = defineMessages({
const replaceMessage = (text, sent_data) => {
let i = 0;
while (i < sent_data.length) {
let idField = sent_data[i].label;
let idField = getFieldName(sent_data[i].label, sent_data[i].field_id);
text = text.replaceAll('${' + idField + '}', sent_data[i].value ?? '');
i++;
}
Expand Down

0 comments on commit 8982698

Please sign in to comment.