mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-09 18:39:35 +02:00
Fix
This commit is contained in:
@@ -44,7 +44,7 @@ module.exports = class LastRunLeaderboardCommand extends Command {
|
||||
return commands
|
||||
.sort((a, b) => a.lastRun ? b.lastRun - a.lastRun : 1)
|
||||
.map(command => {
|
||||
if (previousPts === command.lastRun || previousPts === command.lastRun.toISOString()) {
|
||||
if (previousPts === command.lastRun || (command.lastRun && previousPts === command.lastRun.toISOString())) {
|
||||
positionsMoved++;
|
||||
} else {
|
||||
i += positionsMoved;
|
||||
|
||||
Reference in New Issue
Block a user