diff --git a/src/components/hoc/withAuth.tsx b/src/components/hoc/withAuth.tsx index a9049ac..98ee460 100644 --- a/src/components/hoc/withAuth.tsx +++ b/src/components/hoc/withAuth.tsx @@ -80,7 +80,7 @@ export default function withAuth( if (!user) { const loadUser = async () => { try { - const res = await api.get>("/users/"); + const res = await api.get>("/users/me"); if (!res.data.data) { toast.error("Sesi login tidak valid");