fix: login redirect

This commit is contained in:
Derock 2023-11-21 20:28:37 -05:00
parent a9cee9e4d2
commit 6eb644ba0e
No known key found for this signature in database

View file

@ -26,7 +26,7 @@ export default function LoginForm() {
const login = api.auth.login.useMutation({
onSuccess: (data) => {
toast.success("Successfully logged in!", { id: toastLoading });
router.push("/home");
router.push("/");
},
onError: (error) => {