use triple equal

This commit is contained in:
Olivier Gagnon 2022-09-22 23:45:00 -04:00
parent 9f922de50d
commit 4f64d3eeb1
3 changed files with 3 additions and 3 deletions

@ -280,7 +280,7 @@ function BladeburnerMults({ mults }: IMultsProps): React.ReactElement {
const player = use.Player(); const player = use.Player();
if (!player.canAccessBladeburner()) return <></>; if (!player.canAccessBladeburner()) return <></>;
if (mults.BladeburnerRank == 0) { if (mults.BladeburnerRank === 0) {
const rows: IBNMultRows = { const rows: IBNMultRows = {
BladeburnerRank: { name: "Disabled", content: "" }, BladeburnerRank: { name: "Disabled", content: "" },
}; };

@ -83,7 +83,7 @@ export function SpecialLocation(props: IProps): React.ReactElement {
} }
function renderBladeburner(): React.ReactElement { function renderBladeburner(): React.ReactElement {
if (!player.canAccessBladeburner() || BitNodeMultipliers.BladeburnerRank == 0) { if (!player.canAccessBladeburner() || BitNodeMultipliers.BladeburnerRank === 0) {
return <></>; return <></>;
} }
const text = inBladeburner ? "Enter Bladeburner Headquarters" : "Apply to Bladeburner Division"; const text = inBladeburner ? "Enter Bladeburner Headquarters" : "Apply to Bladeburner Division";

@ -397,7 +397,7 @@ export function NetscriptBladeburner(): InternalAPI<INetscriptBladeburner> {
}, },
joinBladeburnerDivision: (ctx: NetscriptContext) => (): boolean => { joinBladeburnerDivision: (ctx: NetscriptContext) => (): boolean => {
if (player.bitNodeN === 7 || player.sourceFileLvl(7) > 0) { if (player.bitNodeN === 7 || player.sourceFileLvl(7) > 0) {
if (BitNodeMultipliers.BladeburnerRank == 0) { if (BitNodeMultipliers.BladeburnerRank === 0) {
return false; // Disabled in this bitnode return false; // Disabled in this bitnode
} }
if (player.bladeburner instanceof Bladeburner) { if (player.bladeburner instanceof Bladeburner) {