Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
additionInfon won't send when empty (#232)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrund-tsi authored Sep 1, 2021
1 parent 27e0dc9 commit dcf779e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/record-patient-data.component.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down Expand Up @@ -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)}
Expand Down

0 comments on commit dcf779e

Please sign in to comment.