Skip to content

Instantly share code, notes, and snippets.

@ivange94
Created September 11, 2020 09:15
Show Gist options
  • Save ivange94/f4d89c827c1a9741c7e45b760a15e610 to your computer and use it in GitHub Desktop.
Save ivange94/f4d89c827c1a9741c7e45b760a15e610 to your computer and use it in GitHub Desktop.
Replace [line 182](https://github.com/openmrs/openmrs-esm-patient-registration/blob/master/src/patient-registration/patient-registration.component.tsx#L182) with
```javascript
setValidationSchema(validationSchema.concat(addressValidationSchemaTmp));
```
Delete https://github.com/openmrs/openmrs-esm-patient-registration/blob/master/src/patient-registration/patient-registration.component.tsx#L86
And in the form component replace
```javascript
validationSchema={validationSchema.concat(addressValidationSchema)}
```
with
```javascript
validationSchema={validationSchema}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment