fix(verification): isNaN eslint issue

This commit is contained in:
Anthony 2022-08-24 15:01:01 +01:00
parent 801297c3a1
commit 6af8373f2b

View File

@ -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