fix redirect after login
This commit is contained in:
parent
ff7e452c6a
commit
3c333bc5ea
@ -85,7 +85,7 @@ const Login = (props: any) => {
|
|||||||
)}
|
)}
|
||||||
</p>
|
</p>
|
||||||
</form>
|
</form>
|
||||||
{props.isAuth && <Redirect to={props.redirectTo} />}
|
{props.isAuth && <Redirect to={process.env.PUBLIC_URL + props.redirectTo} />}
|
||||||
</StyledForm>
|
</StyledForm>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -8,7 +8,7 @@ const initialState = {
|
|||||||
error: null,
|
error: null,
|
||||||
userId: null,
|
userId: null,
|
||||||
idToken: null,
|
idToken: null,
|
||||||
redirectTo: "",
|
redirectTo: "/",
|
||||||
};
|
};
|
||||||
|
|
||||||
interface ActionType {
|
interface ActionType {
|
||||||
|
Loading…
Reference in New Issue
Block a user