Sample API call

This commit is contained in:
Olu Amey
2023-01-26 17:32:12 -05:00
parent 7a70dea24f
commit 623d3be042
+2
View File
@@ -30,8 +30,10 @@ export default function Login() {
setPassword(e.target.value);
};
const navigate = useNavigate();
const userApi = new usersService();
const doLogin = () => {
if (email !== "" && password !== "") {
userApi.logInUser("support@mermsemr.com"); // just for a test
if (email === "support@mermsemr.com") {
localStorage.setItem("email", `${email}`);
setLoginLoading(true);