Progress
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Button, Form, Input } from "antd";
|
||||
import React from "react";
|
||||
import React, {useEffect} from "react";
|
||||
import { useTranslation } from "react-i18next";
|
||||
import { connect } from "react-redux";
|
||||
import { createStructuredSelector } from "reselect";
|
||||
@@ -36,7 +36,9 @@ export function TechLogin({
|
||||
techLoginStart(values);
|
||||
};
|
||||
|
||||
if (technician) return navigate("/tech/joblookup");
|
||||
useEffect(() => {
|
||||
if (technician) return navigate("/tech/joblookup");
|
||||
}, [technician, navigate]);
|
||||
|
||||
return (
|
||||
<div className="tech-login-container">
|
||||
|
||||
Reference in New Issue
Block a user