From dca9a6a0acdc63f0bf5c4697f5f9fabf5617f82b Mon Sep 17 00:00:00 2001 From: shinhyojeong Date: Tue, 30 Jan 2024 01:23:30 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=EC=BD=94=EB=93=9C=20=EA=B0=80?= =?UTF-8?q?=EB=8F=85=EC=84=B1=EC=9D=84=20=EC=9C=84=ED=95=9C=20=EB=84=A4?= =?UTF-8?q?=EC=9D=B4=EB=B0=8D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/post/PriceOfferCard/index.tsx | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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)`} )}