diff --git a/public/js/account.js b/public/js/account.js index 40c7be3d9..8a5efbb5e 100644 --- a/public/js/account.js +++ b/public/js/account.js @@ -1631,8 +1631,13 @@ function loadMoreLines() { diff = "normal"; } - let raw = result.rawWpm; - if (raw == undefined) { + let raw; + try{ + raw = result.rawWpm.toFixed(2); + if (raw == undefined) { + raw = "-"; + } + } catch (e) { raw = "-"; } @@ -1723,7 +1728,7 @@ function loadMoreLines() { $(".pageAccount .history table tbody").append(`