Skip to content

Commit

Permalink
use consistent error message text
Browse files Browse the repository at this point in the history
  • Loading branch information
vursen committed Sep 27, 2024
1 parent fe0576f commit 4d07eb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 4d07eb2

Please sign in to comment.