Handvask / handvask

Avoid use of == and != JS-0050
Anti-pattern
Minor
a year agoa year old
Expected '===' and instead saw '=='.
208                  value={
209                    selectedMzn
210                      ? mznOptions?.find(
211                          (instance) => instance.value == selectedMzn.id212                        )
213                      : null
214                  }
Expected '===' and instead saw '=='.
191        {(step === 1 &&
192          (mznInstances == undefined ? (
193            <PageLoader />
194          ) : mznInstances.length == 0 ? (195            <p>
196              You don&apos;t have any mzn instances yet, why don&apos;t your
197              create some?
Expected '===' and instead saw '=='.
189    <div className="container-fluid">
190      <div className="card shadow-sm">
191        {(step === 1 &&
192          (mznInstances == undefined ? (193            <PageLoader />
194          ) : mznInstances.length == 0 ? (
195            <p>
Expected '===' and instead saw '=='.
104  ) {
105    if (!dznInstances) return;
106    setSelectedDzn(
107      dznInstances?.find((instance) => instance.id == e?.value) as DznInstance108    );
109  }
110
Expected '===' and instead saw '=='.
 92  ) {
 93    if (!mznInstances) return;
 94    setSelectedMzn(
 95      mznInstances?.find((instance) => instance.id == e?.value) as MznInstance 96    );
 97  }
 98