fix: let user see verify welcome message

This commit is contained in:
2025-06-07 11:41:52 +02:00
parent 70429f69a2
commit 9a0870dbbc

View File

@ -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" />;
}