fix(nav): improve navigation for authorization routes

This commit is contained in:
shafin-r
2025-09-08 14:15:27 +06:00
parent 99d6c15e38
commit 53a2228dc9
9 changed files with 55 additions and 63 deletions

View File

@ -88,7 +88,7 @@ export default function RegisterPage() {
try {
await register(form, setToken);
router.push("/login");
router.replace("/login");
} catch (err: unknown) {
setError(formatError(err));
console.error("User creation error: ", err);