diff --git a/frontend/src/components/roomDetailPage/myReviewee/MyReviewee.tsx b/frontend/src/components/roomDetailPage/myReviewee/MyReviewee.tsx index 895955ed..111e7b23 100644 --- a/frontend/src/components/roomDetailPage/myReviewee/MyReviewee.tsx +++ b/frontend/src/components/roomDetailPage/myReviewee/MyReviewee.tsx @@ -33,16 +33,14 @@ const MyReviewee = ({ roomInfo }: MyRevieweeProps) => { if (loadingButtonId.includes(reviewee.userId)) return; setLoadingButtonId((prev) => [...prev, reviewee.userId]); - postReviewCompleteMutation.mutate( - { roomId: roomInfo.id, revieweeId: reviewee.userId }, - { - onSuccess: () => { - handleNavigateFeedbackPage(reviewee); - setLoadingButtonId((prev) => prev.filter((id) => id !== reviewee.userId)); - }, - onError: () => setLoadingButtonId((prev) => prev.filter((id) => id !== reviewee.userId)), - }, - ); + postReviewCompleteMutation + .mutateAsync({ roomId: roomInfo.id, revieweeId: reviewee.userId }) + .then(() => { + handleNavigateFeedbackPage(reviewee); + }) + .finally(() => { + setLoadingButtonId((prev) => prev.filter((id) => id !== reviewee.userId)); + }); }; // 리뷰 및 피드백 여부 버튼 렌더링 함수 diff --git a/frontend/src/components/shared/roomCardModal/RoomCardModalButton.tsx b/frontend/src/components/shared/roomCardModal/RoomCardModalButton.tsx index 15d2ed02..5ec0c614 100644 --- a/frontend/src/components/shared/roomCardModal/RoomCardModalButton.tsx +++ b/frontend/src/components/shared/roomCardModal/RoomCardModalButton.tsx @@ -127,7 +127,11 @@ const RoomCardModalButton = ({ roomInfo }: RoomCardModalButtonProps) => { -