diff --git a/src/pages/Auth/ModifyInfoPage/index.tsx b/src/pages/Auth/ModifyInfoPage/index.tsx index 05c30de8..aa3a24c0 100644 --- a/src/pages/Auth/ModifyInfoPage/index.tsx +++ b/src/pages/Auth/ModifyInfoPage/index.tsx @@ -285,7 +285,7 @@ const MajorInput = React.forwardRef((pr const { data: userInfo } = useUser(); const [studentNumber, setStudentNumber] = React.useState(userInfo?.student_number || ''); const { data: deptList } = useDeptList(); - const [major, setMajor] = React.useState(null); + const [major, setMajor] = React.useState(userInfo?.major || ''); const deptOptionList = deptList.map((dept) => ({ label: dept.name, value: dept.name,