From acbe9450cc65e502cdfa72abe01a40452004e3a7 Mon Sep 17 00:00:00 2001 From: oikkoikk Date: Sat, 7 Oct 2023 12:13:56 +0900 Subject: [PATCH] Fix : profile update --- src/components/gnb/NavBar.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/gnb/NavBar.tsx b/src/components/gnb/NavBar.tsx index 95f2b75..a02ba5d 100644 --- a/src/components/gnb/NavBar.tsx +++ b/src/components/gnb/NavBar.tsx @@ -30,7 +30,7 @@ export default function NavBar({ logo, profileDropdown }: Props) { const profileButtonClickHandler = async (name: string) => { setIsEditMode((prev) => !prev); - + setName(() => name); mutate(); await update({ ...session, name }); };