Continue Account log
This commit is contained in:
@@ -9,6 +9,7 @@ import { Toaster, toast } from "react-hot-toast";
|
||||
import { z } from "zod";
|
||||
import { Button } from "../../../_components/ui/Button";
|
||||
import { useErrorBoundary } from "react-error-boundary";
|
||||
import { logAction } from "./action";
|
||||
|
||||
export const Login = () => {
|
||||
const { showBoundary } = useErrorBoundary();
|
||||
@@ -46,6 +47,10 @@ export const Login = () => {
|
||||
});
|
||||
return;
|
||||
}
|
||||
|
||||
console.log("data", data);
|
||||
|
||||
await logAction("LOGIN");
|
||||
redirect(searchParams.get("redirect") || "/");
|
||||
} catch (error) {
|
||||
showBoundary(error);
|
||||
|
||||
Reference in New Issue
Block a user