From cb069b800cf89eca0b5aec111ab3de3f04224579 Mon Sep 17 00:00:00 2001 From: 2NNS-V Date: Wed, 11 Sep 2024 11:08:33 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EB=A1=9C=EC=BB=AC=EC=8A=A4?= =?UTF-8?q?=ED=86=A0=EB=A6=AC=EC=A7=80=EC=97=90=20=EA=B0=92=EC=9D=B4=20?= =?UTF-8?q?=EC=9E=88=EB=8B=A4=EB=A9=B4=20name,=20department=20=EC=84=A4?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/HomePage.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pages/HomePage.tsx b/src/pages/HomePage.tsx index 9a492d8..91aac7e 100644 --- a/src/pages/HomePage.tsx +++ b/src/pages/HomePage.tsx @@ -33,7 +33,7 @@ export default function HomePage() { const userInfo = useUserInfo((state) => state); const [isOpen, setIsOpen] = useState(false); - const [selectedDepartment, setSelectedDepartment] = useState(""); + const [selectedDepartment, setSelectedDepartment] = useState(userInfo.department); const handleSideBar = () => { setIsOpen(!isOpen); @@ -98,6 +98,7 @@ export default function HomePage() { height="45px" placeholder="이름을 입력하세용" onChange={(e) => userInfo.setName(e.currentTarget.value)} + defaultValue={userInfo.name} />