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); }