@aehrc/smart-forms-renderer 0.32.1 → 0.32.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -88,7 +88,7 @@ function CustomDateTimeItem(props) {
88
88
  onQrItemChange(createEmptyQrItem(qItem));
89
89
  }
90
90
  const { timeIsValid, is24HourNotation } = validateTimeInput(newTimeInput, newPeriodInput);
91
- if (!validateDateInput(dateInput) && !timeIsValid) {
91
+ if (!validateDateInput(dateInput) || !timeIsValid) {
92
92
  return;
93
93
  }
94
94
  updateQRDateTime(dateInput, newTimeInput, newPeriodInput, is24HourNotation);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aehrc/smart-forms-renderer",
3
- "version": "0.32.1",
3
+ "version": "0.32.2",
4
4
  "description": "FHIR Structured Data Captured (SDC) rendering engine for Smart Forms",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -130,7 +130,7 @@ function CustomDateTimeItem(props: CustomDateTimeItemProps) {
130
130
  }
131
131
 
132
132
  const { timeIsValid, is24HourNotation } = validateTimeInput(newTimeInput, newPeriodInput);
133
- if (!validateDateInput(dateInput) && !timeIsValid) {
133
+ if (!validateDateInput(dateInput) || !timeIsValid) {
134
134
  return;
135
135
  }
136
136