Skip to content

Commit

Permalink
chore: 코드 가독성을 위한 네이밍 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
shinhyojeong committed Jan 29, 2024
1 parent 4e55f9f commit dca9a6a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/components/post/PriceOfferCard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ const PriceOfferCard = ({
const updateLikeStatusMutation = useUpdateLikeStatusMutation()
const createOfferMutation = useCreateOfferMutation()

const offerDisabled =
const isOfferDisabled =
getPostOffersQuery.data?.offerCountOfCurrentMember ===
getPostOffersQuery.data?.maximumOfferCount

Expand Down Expand Up @@ -228,11 +228,9 @@ const PriceOfferCard = ({
</Styled.MessageButton>
) : (
<Styled.MessageButton
disabled={offerDisabled}
disabled={isOfferDisabled}
size="large"
onClick={() => {
offerModal.openModal()
}}>{`가격 제안하기(${
onClick={offerModal.openModal}>{`가격 제안하기(${
getPostOffersQuery.data?.offerCountOfCurrentMember || 0
}/2)`}</Styled.MessageButton>
)}
Expand Down

0 comments on commit dca9a6a

Please sign in to comment.