pull/9825/head
Greg Finley 2021-09-17 14:00:16 -07:00 committed by GitHub
parent 512627a471
commit cf5abcf66a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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