diff --git a/src/api/main/index.ts b/src/api/main/index.ts index 1cb6bbb..f7a4fe1 100644 --- a/src/api/main/index.ts +++ b/src/api/main/index.ts @@ -7,6 +7,7 @@ export const GetName = () => { queryKey: ["name"], queryFn: async () => { const result = await instance.get("/admin/my-name"); + localStorage.setItem("name", result.data); return result.data.name; }, }); diff --git a/src/app/main/checkPage.tsx b/src/app/main/checkPage.tsx index e3fe349..f02d114 100644 --- a/src/app/main/checkPage.tsx +++ b/src/app/main/checkPage.tsx @@ -30,8 +30,8 @@ const CheckPage = ({ type }: checkPageType) => { return ( <> {type === "outGoing" ? ( -