diff --git a/src/components/post/PriceOfferCard/index.tsx b/src/components/post/PriceOfferCard/index.tsx index cb06a4d6..cd11650a 100644 --- a/src/components/post/PriceOfferCard/index.tsx +++ b/src/components/post/PriceOfferCard/index.tsx @@ -50,7 +50,7 @@ const PriceOfferCard = ({ const updateLikeStatusMutation = useUpdateLikeStatusMutation() const createOfferMutation = useCreateOfferMutation() - const offerDisabled = + const isOfferDisabled = getPostOffersQuery.data?.offerCountOfCurrentMember === getPostOffersQuery.data?.maximumOfferCount @@ -228,11 +228,9 @@ const PriceOfferCard = ({ ) : ( { - offerModal.openModal() - }}>{`가격 제안하기(${ + onClick={offerModal.openModal}>{`가격 제안하기(${ getPostOffersQuery.data?.offerCountOfCurrentMember || 0 }/2)`} )}