pull/9850/head
Benedikt Werner 2021-09-19 16:31:16 +02:00
parent 1277e9e0f7
commit 5157a32721
No known key found for this signature in database
GPG Key ID: 1DBFF0F8E9E121EB
1 changed files with 1 additions and 1 deletions

View File

@ -2,7 +2,7 @@ lichess.ratingHistoryChart = function (data, { singlePerfName, perfIndex }) {
var oneDay = 86400000;
function smoothDates(data) {
if (!data.length) return [];
// If last rating wasn't today, add to the array
var today = new Date().setUTCHours(0, 0, 0, 0);
var lastRating = data[data.length - 1];