diff --git a/src/main/java/seedu/address/ui/StudentCard.java b/src/main/java/seedu/address/ui/StudentCard.java index 0e47ef895ea..4512d018402 100644 --- a/src/main/java/seedu/address/ui/StudentCard.java +++ b/src/main/java/seedu/address/ui/StudentCard.java @@ -60,8 +60,7 @@ public StudentCard(Student student, int displayedIndex) { subject.setText(student.getSubject().value); remark.setText(student.getRemark().value); student.getLessons().stream() - .sorted(Comparator.comparing(Lesson::getLessonValue)) - .filter(lesson -> lesson.getLessonStatus() == 0) + .sorted(Comparator.comparing(Lesson::getLessonValue)).filter(lesson -> lesson.getLessonStatus() == 0) .forEach(lesson -> lessons.getChildren().add(new Label(lesson.toString()))); } }