Skip to content

Commit 955321d

Browse files
committed
Fix: error 객체를 직접 참조하지 않도록 수정
1 parent 9262a90 commit 955321d

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/pages/Profile/ProfileEdit/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const ProfileEdit: React.FC = () => {
152152
} catch (error) {
153153
setModalContent('프로필 수정 중 오류가 발생했습니다.');
154154
setIsModalVisible(true);
155-
console.error('Error updating user info:', error.response?.data || error.message);
155+
console.error('Error updating user info:', error);
156156
}
157157
};
158158

src/pages/Profile/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ const Profile: React.FC = () => {
8686
try {
8787
await createMatchingApi(matchingRequestData);
8888
handleModalOpen(`${userInfo?.nickname}님에게 대표 OOTD와 \n한 줄 메세지를 보냈어요!`);
89-
} catch (error: any) {
89+
} catch (error) {
9090
console.error('매칭 신청 오류:', error);
91-
handleModalOpen(error.response?.data?.message || '매칭 신청에 실패했습니다.');
91+
handleModalOpen('매칭 신청에 실패했습니다.');
9292
}
9393
};
9494

0 commit comments

Comments
 (0)