message: Fix app course leave duplicate
diff: @@ -69,12 +69,10 @@ export class CourseContainerComponent implements OnInit {
  });
  }
  - leaveCallback({courseId}) {
  - this.courseService.leaveStudent(courseId).then((res) => {
  + leaveCallback(result) {
  + if (result) {
  // reload courses to update enrollment status
  this.onLeave.emit();
  - }).catch((err) => {
  - this.snackBar.open(`${err.statusText}: ${JSON.parse(err._body).message}`, '', {duration: 5000});
  - });
  + }
  }
  }
  