Skip to content

Commit

Permalink
Fixed weight group inaccuracy
Browse files Browse the repository at this point in the history
- Fixed weight table missing inaccuracy not displaying
  • Loading branch information
da-stoi committed Jan 12, 2023
1 parent 54fa2cc commit d0b8fcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/getInaccuracies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function getInaccuracies(assignments: Assignment[], weightGroups: WeightGroups)
const inaccuracies = [];

// Check if there is a weight group table published
if (weightGroups.length <= 1) {
if (Object.keys(weightGroups).length <= 1) {
inaccuracies.push('Your instructor has not published weight groups. This may cause inaccuracies.');
}

Expand Down

0 comments on commit d0b8fcd

Please sign in to comment.