diff --git a/src/app/create-course/create-course.component.ts b/src/app/create-course/create-course.component.ts index 190b6f98..bc9fa7a4 100644 --- a/src/app/create-course/create-course.component.ts +++ b/src/app/create-course/create-course.component.ts @@ -89,7 +89,11 @@ export class CreateCourseComponent implements OnInit { }; newCourse.promoStartAt = Timestamp.fromDate(this.form.value.promoStartAt); - + + if (this.iconUrl) { + newCourse.iconUrl = this.iconUrl; + } + this.coursesService.createCourse(newCourse, this.courseId) .pipe( tap(course => {