From c4daf8164eedb9e867366bf8854eb6c4f70ad10b Mon Sep 17 00:00:00 2001 From: Yassin Date: Tue, 22 Oct 2024 15:19:35 +0200 Subject: [PATCH] Update packages/esm-patient-registration-app/src/patient-registration/input/custom-input/identifier/identifier-input.component.tsx Co-authored-by: Ian <52504170+ibacher@users.noreply.github.com> --- .../custom-input/identifier/identifier-input.component.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/esm-patient-registration-app/src/patient-registration/input/custom-input/identifier/identifier-input.component.tsx b/packages/esm-patient-registration-app/src/patient-registration/input/custom-input/identifier/identifier-input.component.tsx index e21fca346..3a8dd0490 100644 --- a/packages/esm-patient-registration-app/src/patient-registration/input/custom-input/identifier/identifier-input.component.tsx +++ b/packages/esm-patient-registration-app/src/patient-registration/input/custom-input/identifier/identifier-input.component.tsx @@ -58,7 +58,7 @@ const IdentifierInput: React.FC = ({ patientIdentifier, fi setFieldValue(`identifiers.${fieldName}`, { ...patientIdentifier, ...setIdentifierSource(identifierType?.identifierSources?.[0], initialValue, initialValue), - ...(autoGeneration && manualEntryEnabled && { identifierValue: initialValue || '' }), + ...(autoGeneration && manualEntryEnabled && { identifierValue: initialValue ?? '' }), }); };