From 6af8373f2b84a0c97b7019f626d5e98e23fb71a0 Mon Sep 17 00:00:00 2001 From: Anthony Date: Wed, 24 Aug 2022 15:01:01 +0100 Subject: [PATCH] fix(verification): isNaN eslint issue --- src/listeners/verification/joinVC.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/listeners/verification/joinVC.ts b/src/listeners/verification/joinVC.ts index dbf6453..a9f0b04 100644 --- a/src/listeners/verification/joinVC.ts +++ b/src/listeners/verification/joinVC.ts @@ -269,7 +269,7 @@ class VerificationJoinVCListener extends Listener { await button.deferUpdate(); // Get the button choice const buttonChoice = this.getButtonValue(button.customId); - if (isNaN(buttonChoice)) { + if (Number.isNaN(buttonChoice)) { return; } // Set the value of the button choice to the page the question was on