Skip to content

Commit

Permalink
fix: remove buy with card button for LANDs
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo committed Mar 11, 2024
1 parent 506e4e6 commit 3f5ba28
Showing 1 changed file with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { useCallback } from 'react'
import { Contract } from '@dcl/schemas'
import { Contract, NFTCategory } from '@dcl/schemas'
import { ContractName } from 'decentraland-transactions'
import withAuthorizedAction from 'decentraland-dapps/dist/containers/withAuthorizedAction'
import { getAnalytics } from 'decentraland-dapps/dist/modules/analytics'
Expand Down Expand Up @@ -90,7 +90,12 @@ const BuyNftWithCryptoModalHOC = (props: Props) => {
price={order.price}
isBuyingAsset={isExecutingOrder || isExecutingOrderCrossChain}
onBuyNatively={onBuyNatively}
onBuyWithCard={onBuyWithCard}
onBuyWithCard={
nft.category === NFTCategory.ESTATE ||
nft.category === NFTCategory.PARCEL
? undefined
: onBuyWithCard
}
onBuyCrossChain={onExecuteOrderCrossChain}
onGetGasCost={onGetGasCost}
isLoadingAuthorization={isLoadingAuthorization}
Expand Down

0 comments on commit 3f5ba28

Please sign in to comment.