Skip to content

Commit

Permalink
Update packages/esm-patient-registration-app/src/patient-registration…
Browse files Browse the repository at this point in the history
…/input/custom-input/identifier/identifier-input.component.tsx

Co-authored-by: Ian <52504170+ibacher@users.noreply.github.com>
  • Loading branch information
ynurmahomed and ibacher authored Oct 22, 2024
1 parent 0de4369 commit c4daf81
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ const IdentifierInput: React.FC<IdentifierInputProps> = ({ patientIdentifier, fi
setFieldValue(`identifiers.${fieldName}`, {
...patientIdentifier,
...setIdentifierSource(identifierType?.identifierSources?.[0], initialValue, initialValue),
...(autoGeneration && manualEntryEnabled && { identifierValue: initialValue || '' }),
...(autoGeneration && manualEntryEnabled && { identifierValue: initialValue ?? '' }),
});
};

Expand Down

0 comments on commit c4daf81

Please sign in to comment.