Skip to content

Commit

Permalink
Standardize on Math.round for all category scores (#2361)
Browse files Browse the repository at this point in the history
* swap math.round & util.formatnum

* use math.round explicitly
  • Loading branch information
evenstensberg authored and ebidel committed May 25, 2017
1 parent 296452e commit 2c96546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lighthouse-core/report/v2/renderer/report-renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class ReportRenderer {
this._dom.find('.leftnav-item__category', navItem).textContent = category.name;
const score = this._dom.find('.leftnav-item__score', navItem);
score.classList.add(`lh-score__value--${Util.calculateRating(category.score)}`);
score.textContent = Math.round(Util.formatNumber(category.score));
score.textContent = Math.round(category.score);
nav.appendChild(navItem);
}
return leftNav;
Expand Down

0 comments on commit 2c96546

Please sign in to comment.