diff --git a/src/app/(auth)/logout/page.tsx b/src/app/(auth)/logout/page.tsx index 6971ebb..99b7a27 100644 --- a/src/app/(auth)/logout/page.tsx +++ b/src/app/(auth)/logout/page.tsx @@ -1,6 +1,6 @@ "use client"; -import logout from "@/modules/auth/actions/logout"; +import logoutAction from "@/modules/auth/actions/logoutAction"; import { useEffect } from "react"; /** @@ -9,9 +9,9 @@ import { useEffect } from "react"; */ export default function LogoutPage() { useEffect(() => { - const logoutAction = async () => await logout(); - - logoutAction(); + (async () => await logoutAction())() + .then(() => {}) + .catch(() => {}); }, []); return
; diff --git a/src/modules/auth/actions/logout.ts b/src/modules/auth/actions/logoutAction.ts similarity index 100% rename from src/modules/auth/actions/logout.ts rename to src/modules/auth/actions/logoutAction.ts