Skip to content

Commit

Permalink
Fixed copy-paste bug
Browse files Browse the repository at this point in the history
Had a duplicate line
  • Loading branch information
glen3b committed Dec 13, 2017
1 parent b42f1d4 commit cb11f0d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion js/grades.js
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,6 @@ function createEditListener(gradeColContentWrap, catRow, perRow, finishedCallbac
let colMatch = col ? col.textContent.match(/(\d+\.?\d*)%/) : null;
if (colMatch) {
let scorePercent = Number.parseFloat(colMatch[1]);
let scorePercent = Number.parseFloat(col.textContent.match(/(\d+\.?\d*)%/)[1]);
total += (weightPercent.slice(1, -2) / 100) * scorePercent;
awardedPeriodPercent.title = total + "%";
awardedPeriodPercent.textContent = (Math.round(total * 100) / 100) + "%";
Expand Down

0 comments on commit cb11f0d

Please sign in to comment.