fix: login redirect
This commit is contained in:
parent
a9cee9e4d2
commit
6eb644ba0e
|
@ -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) => {
|
||||
|
|
Loading…
Reference in a new issue