From 48a4350ed42637e565c0c2fee01b2080d8f7806f Mon Sep 17 00:00:00 2001 From: Evan Tung Date: Thu, 28 Sep 2023 17:41:11 -0400 Subject: [PATCH] triple-symbol equals/unequals --- commands/dominator.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/dominator.ts b/commands/dominator.ts index bf9168d..4aca954 100644 --- a/commands/dominator.ts +++ b/commands/dominator.ts @@ -73,8 +73,8 @@ async function execute(interaction: ChatInputCommandInteraction) { } as Partial); } else if (ATTRIBUTES.includes(attribute)) { const triggerData = { communityID: interaction.guildId } as any; - if (action != null && action != undefined) triggerData[`${attribute}_action`] = action; - if (threshold != null && threshold != undefined) triggerData[`${attribute}_threshold`] = threshold; + if (action !==null && action !==undefined) triggerData[`${attribute}_action`] = action; + if (threshold !==null && threshold !==undefined) triggerData[`${attribute}_threshold`] = threshold; await dominator.update(triggerData); }