Rename Logout into LogoutAction

This commit is contained in:
sianida26 2024-02-28 10:05:11 +07:00
parent c775757314
commit 8ceaca5f46
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
"use client"; "use client";
import logout from "@/modules/auth/actions/logout"; import logoutAction from "@/modules/auth/actions/logoutAction";
import { useEffect } from "react"; import { useEffect } from "react";
/** /**
@ -9,9 +9,9 @@ import { useEffect } from "react";
*/ */
export default function LogoutPage() { export default function LogoutPage() {
useEffect(() => { useEffect(() => {
const logoutAction = async () => await logout(); (async () => await logoutAction())()
.then(() => {})
logoutAction(); .catch(() => {});
}, []); }, []);
return <div></div>; return <div></div>;