Skip to content

Commit

Permalink
Don't show points for non-scoring mistake types (#148)
Browse files Browse the repository at this point in the history
  • Loading branch information
Feuermagier authored Nov 20, 2024
1 parent 9522977 commit a5b489b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ private List<FeedbackDTO> createGlobalFeedback(RatingGroup ratingGroup) {
if (mistakePoints.isPresent()) {

// Header per mistake type
if (ratingGroup.isScoringGroup()) {
if (ratingGroup.isScoringGroup() && mistakeType.shouldScore()) {
lines.add(GLOBAL_FEEDBACK_MISTAKE_TYPE_HEADER.format(
mistakeType.getButtonText(), mistakePoints.get().score()));
} else {
Expand Down

0 comments on commit a5b489b

Please sign in to comment.