fix(db); no more bug on switch connection
This commit is contained in:
@@ -36,6 +36,7 @@ export function RegisterForm({ from }: RegisterFormProps) {
|
||||
try {
|
||||
await authService.register(email, password);
|
||||
router.push(from || "/");
|
||||
router.refresh();
|
||||
} catch (error) {
|
||||
setError(error as AuthError);
|
||||
} finally {
|
||||
|
||||
Reference in New Issue
Block a user