diff --git a/resources/vue/components/courseware/CoursewareDashboardStudents.vue b/resources/vue/components/courseware/CoursewareDashboardStudents.vue index 189ab1f4738fd24446ab9f0013c424fcbd28556e..d0a15ce9197d4715c4aa3cb1d23d183564071267 100644 --- a/resources/vue/components/courseware/CoursewareDashboardStudents.vue +++ b/resources/vue/components/courseware/CoursewareDashboardStudents.vue @@ -363,7 +363,7 @@ export default { let attributes = {}; attributes.renewal = this.currentDialogTask.attributes.renewal; if (attributes.renewal === 'granted') { - attributes['renewal-date'] = new Date(this.currentDialogTask.attributes['renewal-date']).toISOString(); + attributes['renewal-date'] = new Date(this.currentDialogTask.attributes['renewal-date'] || Date.now()).toISOString(); } this.updateTask({