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";
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 <div></div>;