From dcf779ea1b260f6d2d16a09788f39f464f8febef Mon Sep 17 00:00:00 2001 From: Gordon Grund <80682839+ggrund-tsi@users.noreply.github.com> Date: Wed, 1 Sep 2021 09:57:08 +0200 Subject: [PATCH] additionInfon won't send when empty (#232) --- src/components/record-patient-data.component.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/record-patient-data.component.tsx b/src/components/record-patient-data.component.tsx index 3feb672..e537387 100644 --- a/src/components/record-patient-data.component.tsx +++ b/src/components/record-patient-data.component.tsx @@ -156,9 +156,9 @@ const RecordPatientData = (props: any) => { includePersData: persDataInQR, privacyAgreement: privacyAgreement, phoneNumber: phoneNumber, - emailAddress: emailAddress ? emailAddress : undefined, + emailAddress: emailAddress || undefined, dccConsent: dccConsent, - additionalInfo: additionalInfo + additionalInfo: additionalInfo || undefined }) setTimeout(context.navigation!.toShowRecordPatient, 200); } @@ -262,7 +262,7 @@ const RecordPatientData = (props: any) => { minLength={5} maxLength={255} /> - + < FormGroupInput controlId='formAdditionalInfo' title={t('translation:additional-info')} value={additionalInfo} onChange={(evt: any) => setAdditionalInfo(evt.target.value)}