Skip to content

Commit

Permalink
Chore: #175 유저데이터 초기값 설정에서 optional chaining 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoonyesol committed Oct 4, 2024
1 parent e6edb7a commit 5de104a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/pages/setting/UserSettingPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ export default function UserSettingPage() {
const methods = useForm<EditUserInfoForm>({
mode: 'onChange',
defaultValues: {
username: userInfoData?.username || '',
email: userInfoData?.email || '',
nickname: userInfoData?.nickname || '',
bio: userInfoData?.bio || '',
profileImageName: userInfoData?.profileImageName || '',
username: userInfoData.username,
email: userInfoData.email,
nickname: userInfoData.nickname,
bio: userInfoData.bio,
profileImageName: userInfoData.profileImageName,
},
});
const { formState, register, setValue, watch, handleSubmit } = methods;
Expand Down

0 comments on commit 5de104a

Please sign in to comment.