Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Anish committed Jan 7, 2025
1 parent 64bbc00 commit 7575fe1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,14 @@ export class ExerciseHeadersInformationComponent implements OnInit, OnChanges {
this.addDifficultyItem();
this.addCategoryItems();
}

updatePointsItem() {
const pointsItemIndex = this.informationBoxItems.findIndex((item) => item.title === 'artemisApp.courseOverview.exerciseDetails.points');
if (pointsItemIndex !== -1) {
this.informationBoxItems[pointsItemIndex] = this.getPointsItem('points', this.exercise.maxPoints!, this.achievedPoints);
}
}

addPointsItems() {
const { maxPoints, bonusPoints } = this.exercise;
if (maxPoints) {
Expand Down

0 comments on commit 7575fe1

Please sign in to comment.