Skip to content

Commit 61af407

Browse files
committed
dashboard: show "NaN MB" instead of "NaN.0 MB" when n is undefined
1 parent 81d06de commit 61af407

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dashboard/assets/scripts/dashboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ function numberWithCommas(s_or_n) {
272272

273273
function toStringTenths(n) {
274274
let s = `${Math.round(10 * n) / 10}`;
275-
if (s.indexOf(".") === -1) {
275+
if (s !== "NaN" && s.indexOf(".") === -1) {
276276
s += ".0";
277277
}
278278
return s;

0 commit comments

Comments
 (0)