From 4f64d3eeb1b4ba8eef0eeca0e345ead3c1fc6c01 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Thu, 22 Sep 2022 23:45:00 -0400 Subject: [PATCH] use triple equal --- src/BitNode/ui/BitnodeMultipliersDescription.tsx | 2 +- src/Locations/ui/SpecialLocation.tsx | 2 +- src/NetscriptFunctions/Bladeburner.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/BitNode/ui/BitnodeMultipliersDescription.tsx b/src/BitNode/ui/BitnodeMultipliersDescription.tsx index 224f62349..51516aaf9 100644 --- a/src/BitNode/ui/BitnodeMultipliersDescription.tsx +++ b/src/BitNode/ui/BitnodeMultipliersDescription.tsx @@ -280,7 +280,7 @@ function BladeburnerMults({ mults }: IMultsProps): React.ReactElement { const player = use.Player(); if (!player.canAccessBladeburner()) return <>; - if (mults.BladeburnerRank == 0) { + if (mults.BladeburnerRank === 0) { const rows: IBNMultRows = { BladeburnerRank: { name: "Disabled", content: "" }, }; diff --git a/src/Locations/ui/SpecialLocation.tsx b/src/Locations/ui/SpecialLocation.tsx index bb55be9a4..b95f750ce 100644 --- a/src/Locations/ui/SpecialLocation.tsx +++ b/src/Locations/ui/SpecialLocation.tsx @@ -83,7 +83,7 @@ export function SpecialLocation(props: IProps): React.ReactElement { } function renderBladeburner(): React.ReactElement { - if (!player.canAccessBladeburner() || BitNodeMultipliers.BladeburnerRank == 0) { + if (!player.canAccessBladeburner() || BitNodeMultipliers.BladeburnerRank === 0) { return <>; } const text = inBladeburner ? "Enter Bladeburner Headquarters" : "Apply to Bladeburner Division"; diff --git a/src/NetscriptFunctions/Bladeburner.ts b/src/NetscriptFunctions/Bladeburner.ts index 96b4a92f9..1e53919bf 100644 --- a/src/NetscriptFunctions/Bladeburner.ts +++ b/src/NetscriptFunctions/Bladeburner.ts @@ -397,7 +397,7 @@ export function NetscriptBladeburner(): InternalAPI { }, joinBladeburnerDivision: (ctx: NetscriptContext) => (): boolean => { if (player.bitNodeN === 7 || player.sourceFileLvl(7) > 0) { - if (BitNodeMultipliers.BladeburnerRank == 0) { + if (BitNodeMultipliers.BladeburnerRank === 0) { return false; // Disabled in this bitnode } if (player.bladeburner instanceof Bladeburner) {