fix: let user see verify welcome message
This commit is contained in:
@ -54,7 +54,11 @@ const VerificationLayout: FC = () => {
|
||||
}
|
||||
}, [navigate, redirect, step]);
|
||||
|
||||
if (step === "email" && !location.pathname.startsWith("/verify/email")) {
|
||||
if (
|
||||
step === "email" &&
|
||||
!location.pathname.startsWith("/verify/email") &&
|
||||
location.pathname.replace(/\/$/i, "") !== "/verify"
|
||||
) {
|
||||
return <Navigate to="/verify/email" />;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user