Skip to content

Commit

Permalink
fixed url for login upon log out (#615)
Browse files Browse the repository at this point in the history
* fixed url for login upon log out

* fix SEO title
  • Loading branch information
jeromehardaway authored Aug 7, 2024
1 parent c4fabec commit 3d6e6da
Show file tree
Hide file tree
Showing 3 changed files with 5,468 additions and 5,929 deletions.
5 changes: 1 addition & 4 deletions src/pages/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,7 @@ const Login = () => {
if (!isLoggedIn) {
return (
<>
<PageSeo
title="Login Register"
description="Login to your account"
/>
<PageSeo title="Login" description="Login to your account" />
<Breadcrumb
pages={[{ path: "/", label: "home" }]}
currentPage="Login"
Expand Down
4 changes: 2 additions & 2 deletions src/pages/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Profile: PageProps = () => {

useEffect(() => {
if (!isLoggedIn) {
void router.push("/login-register");
void router.push("/login");
}
}, [isLoggedIn, router]);

Expand All @@ -36,7 +36,7 @@ const Profile: PageProps = () => {

const handleLogout = () => {
logout();
void router.push("/login-register");
void router.push("/login");
};

return (
Expand Down
Loading

0 comments on commit 3d6e6da

Please sign in to comment.