palladians / pallad

Either all code paths should have explicit returns, or none of them JS-0045
Anti-pattern
Minor
1 occurrence in this check
Async arrow function expected no return value
51      const authenticated = (await securePersistence.getItem("foo")) === "bar"
52      if (!authenticated) {
53        await sessionPersistence.removeItem("spendingPassword")
54        return unlockWalletForm.setError("spendingPassword", {55          type: "wrongPassword",56          message: "The spending password is wrong",57        })58      }
59      navigate("/dashboard")
60    })