From 959d8030d13b74dc1b3f5e057878ad5bf3c8ffe4 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Tue, 21 Apr 2020 19:32:32 -0400 Subject: [PATCH] Fix --- commands/games-sp/horse-race.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/games-sp/horse-race.js b/commands/games-sp/horse-race.js index 12193df8..e8f99c95 100644 --- a/commands/games-sp/horse-race.js +++ b/commands/games-sp/horse-race.js @@ -107,6 +107,6 @@ module.exports = class HorseRaceCommand extends Command { const min = Math.floor(time / 60); const sec = Math.floor(time - (min * 60)); const ms = time - sec - (min * 60); - return `${min}:${sec.padStart(2, '0')}.${ms.toFixed(4).slice(2)}`; + return `${min}:${sec.toString().padStart(2, '0')}.${ms.toFixed(4).slice(2)}`; } };