Skip to content

Commit 930c176

Browse files
committed
fix typo from 9f68cfc
1 parent 9f68cfc commit 930c176

File tree

1 file changed

+3
-2
lines changed
  • lighthouse-core/report/html/renderer

1 file changed

+3
-2
lines changed

lighthouse-core/report/html/renderer/i18n.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,14 @@ class I18n {
6767
* @return {Intl.NumberFormat}
6868
*/
6969
_byteFormatterForGranularity(granularity) {
70+
// assume any granularity above 1 will not contain fractional parts, i.e. will never be 1.5
7071
let numberOfFractionDigits = 0;
7172
if (granularity < 1) {
72-
// assumes granularities above 1 will not contain fractional parts, i.e. will never be 1.5
7373
numberOfFractionDigits = -Math.floor(Math.log10(granularity));
7474
}
75+
7576
return new Intl.NumberFormat(this._numberDateLocale, {
76-
...this._numberDateLocale.resolvedOptions(),
77+
...this._numberFormatter.resolvedOptions(),
7778
maximumFractionDigits: numberOfFractionDigits,
7879
minimumFractionDigits: numberOfFractionDigits,
7980
});

0 commit comments

Comments
 (0)