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} />