Skip to content

Commit

Permalink
fix type error ProfileEditModal
Browse files Browse the repository at this point in the history
  • Loading branch information
christie26 committed Dec 16, 2023
1 parent 7e8bfec commit aa110e3
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions project/frontend/src/components/profile/ProfileEditModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,13 +44,8 @@ export const ProfileEditModal: React.FC<ModalProfileProps> = ({
});
fetchData();
onClose();
} catch (error) {
if (error instanceof Error) {
alert(`${error.message}`);
console.error('Error saving changes:', error);
} else {
console.error('Non-Error type error:', error);
}
} catch (error: any) {
alert(error?.error?.message ?? '유니크 체크에 실패했습니다.');
}
}, [api, newData, onClose, fetchData]);

Expand Down

0 comments on commit aa110e3

Please sign in to comment.