Skip to content

Commit

Permalink
#2490 Update message for validation
Browse files Browse the repository at this point in the history
  • Loading branch information
dwalizer committed Jun 19, 2024
1 parent 605215b commit 8083dd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dashboard-prime/src/components/badges/EditBadge.vue
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ const schema = object({
otherwise: (sch) => sch.max(maximumDays.value)
}),
'gemDates': tuple([
date().label('Start date'),
date().label('End date')
date().label('Start date').required('You must select a start date'),
date().label('End date').required('You must select an end date')
]).label('Gem Date').test('notInPast', 'End date can not be in the past', (value) => {
let valid = true;
// only trigger this validation on new badge entry, not edits
Expand Down

0 comments on commit 8083dd0

Please sign in to comment.