Skip to content

Commit

Permalink
feat: 팀원 삭제 실패 시, 서버의 message 보여주기 (#387)
Browse files Browse the repository at this point in the history
  • Loading branch information
llddang authored Jan 26, 2025
1 parent 4f73200 commit 832996b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,9 @@ const RemoveTeamMemberModal = ({ member, isOpen, teamId, teamName, onClose }: Me
const handleRemoveMemberClick = () => {
deleteMember(teamId, member.id).then((res) => {
if (!res.ok) {
alert('팀원을 삭제하는데 실패했습니다.');
} else {
onClose();
alert(res.body.message || '팀원을 삭제하는데 실패했습니다.');
}
onClose();
});
};

Expand Down

0 comments on commit 832996b

Please sign in to comment.