Use isNaN here instead

This commit is contained in:
Holly Stubbs 2022-02-23 05:33:03 +00:00
parent 1219bbca38
commit 7544e9a7dd
Signed by: tgpholly
GPG key ID: B8583C4B7D18119E

View file

@ -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(() => {