@@ -99,7 +97,8 @@ const NewLabRequest = () => {
onSearch={async (query: string) => PatientRepository.search(query)}
searchAccessor="fullName"
renderMenuItemChildren={(p: Patient) =>
{`${p.fullName} (${p.code})`}
}
- isInvalid={!!error.patient}
+ isInvalid={!!error?.patient}
+ feedback={t(error?.patient as string)}
/>