Skip to content

Commit a7f0797

Browse files
committed
fix: 빌드 오류 수정
1 parent 94a8da9 commit a7f0797

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/pages/Profile/ProfileEdit/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const ProfileEdit: React.FC = () => {
4949
const [birthDate, setBirthDate] = useState<string>('');
5050
const [name, setName] = useState<string>('');
5151
const [email, setEmail] = useState<string>('');
52+
const [userStyletags, setUserStyletags] = useState<string[]>([]);
5253
const [isLoading, setIsLoading] = useState<boolean>(true);
5354
const navigate = useNavigate();
5455
const [modalContent, setModalContent] = useState<string | null>(null);
@@ -74,6 +75,7 @@ const ProfileEdit: React.FC = () => {
7475
setBirthDate(userInfo.birthDate || '');
7576
setName(userInfo.name || '');
7677
setEmail(userInfo.email || '');
78+
setUserStyletags(userInfo.userStyletags || []);
7779
} catch (error) {
7880
console.error('Error fetching user info:', error);
7981
} finally {
@@ -128,6 +130,7 @@ const ProfileEdit: React.FC = () => {
128130
nickname: nickname || '닉네임 없음',
129131
profilePictureUrl: profilePictureUrl || '',
130132
bio: bio || '',
133+
userStyletags: userStyletags || [],
131134
};
132135

133136
const response = await patchUserInfoApi(payload, currentUserId);

0 commit comments

Comments
 (0)