Use isNaN here instead
This commit is contained in:
parent
1219bbca38
commit
7544e9a7dd
1 changed files with 1 additions and 1 deletions
|
@ -109,7 +109,7 @@ module.exports = function(User, Message, Stream, IsCalledFromMultiplayer = false
|
|||
switch (args[1]) {
|
||||
case "start":
|
||||
if (args.length > 3) return;
|
||||
if (`${parseInt(args[2])}` != "NaN") {
|
||||
if (!isNaN(args[2])) {
|
||||
User.currentMatch.matchStartCountdownActive = true;
|
||||
let countdown = parseInt(args[2]);
|
||||
let intervalRef = setInterval(() => {
|
||||
|
|
Loading…
Reference in a new issue