From 4d07eb26cf669f5e42ad85af03b3fccd5e244b7c Mon Sep 17 00:00:00 2001 From: Sergey Vinogradov Date: Fri, 27 Sep 2024 15:26:14 +0400 Subject: [PATCH] use consistent error message text --- .../component/datetimepicker/date-time-picker-validation.ts | 2 +- .../datetimepicker/react/date-time-picker-validation.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/demo/component/datetimepicker/date-time-picker-validation.ts b/frontend/demo/component/datetimepicker/date-time-picker-validation.ts index 8673b12117..72737e2cde 100644 --- a/frontend/demo/component/datetimepicker/date-time-picker-validation.ts +++ b/frontend/demo/component/datetimepicker/date-time-picker-validation.ts @@ -47,7 +47,7 @@ export class Example extends LitElement { !timePicker.value && !!(timePicker.inputElement as HTMLInputElement).value; if (hasBadDateInput || hasBadTimeInput) { - this.errorMessage = 'Invalid date and time'; + this.errorMessage = 'Invalid date or time'; } else if (!field.value) { this.errorMessage = 'Field is required'; } else if (isBefore(date, this.minDate)) { diff --git a/frontend/demo/component/datetimepicker/react/date-time-picker-validation.tsx b/frontend/demo/component/datetimepicker/react/date-time-picker-validation.tsx index 8a9bf82585..486f730ecb 100644 --- a/frontend/demo/component/datetimepicker/react/date-time-picker-validation.tsx +++ b/frontend/demo/component/datetimepicker/react/date-time-picker-validation.tsx @@ -34,7 +34,7 @@ function Example() { !timePicker.value && !!(timePicker.inputElement as HTMLInputElement).value; if (hasBadDateInput || hasBadTimeInput) { - errorMessage.value = 'Invalid date and time'; + errorMessage.value = 'Invalid date or time'; } else if (!field.value) { errorMessage.value = 'Field is required'; } else if (isBefore(date, minDate.value)) {