Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 4674a5d

Browse files
committed
Fixing no feedback in hparsons when answer longer than correct one
1 parent 69ac81e commit 4674a5d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

runestone/hparsons/js/blockGrader.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,8 @@ export default class BlockBasedGrader {
9494
state = "correct";
9595
} else if (!isCorrectOrder && state != "incorrectTooShort") {
9696
state = "incorrectMoveBlocks";
97+
} else if (!this.correctLength && state != "incorrectTooShort") {
98+
state = "incorrectMoveBlocks";
9799
}
98100
this.calculatePercent();
99101
this.graderState = state;

0 commit comments

Comments
 (0)