Skip to content

Commit

Permalink
Use form ID if available as strong reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Paris committed Jan 8, 2025
1 parent 60c006c commit 928cb4e
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export class SubmitService {
const formFields = flattenQuestions(questions);
const answers = answersHashMap(formFields);
const { pay, type } = metadata;
const reference = metadata?.externalReference ?? metadata?.internalReference ?? metadata?.pay?.reference ?? this.generateId();
const reference = formData['id'] ?? metadata?.pay?.reference ?? this.generateId();
const caseServiceName = getCaseServiceName(type);
if (pay) {
pay.total = fees?.total;
Expand Down

0 comments on commit 928cb4e

Please sign in to comment.