Merge branch 'develop' of https://github.com/frappe/lms into sidebar-edit

This commit is contained in:
Jannat Patel
2024-05-30 12:31:50 +05:30
4 changed files with 31 additions and 9 deletions

View File

@@ -116,7 +116,7 @@ function submitEvaluation(close) {
if (!evaluation.start_time) {
return 'Please select a slot.'
}
if (dayjs(evaluation.date).isSameOrBefore(dayjs(), 'day')) {
if (dayjs(evaluation.date).isBefore(dayjs(), 'day')) {
return 'Please select a future date.'
}
if (dayjs(evaluation.date).isAfter(dayjs(props.endDate), 'day')) {