Skip to content

Commit

Permalink
fix: l1 nfts best buying option (#2355)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo authored Jan 27, 2025
1 parent ae78e79 commit d4239cd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,7 @@ const BestBuyingOption = ({ asset, tableRef, isOffchainPublicNFTOrdersEnabled }:
}
const sortBy = OrderSortBy.CHEAPEST

if (asset.network === Network.MATIC) {
params.itemId = asset.itemId
} else if (asset.network === Network.ETHEREUM) {
params.nftName = asset.name
}
params.itemId = asset.itemId

const orderAPI = isOffchainPublicNFTOrdersEnabled ? marketplaceOrderAPI : legacyOrderAPI
orderAPI
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const INITIAL_PAGE = 1
const ListingsTable = (props: Props) => {
const { asset, sortBy = OrderSortBy.CHEAPEST, isOffchainPublicNFTOrdersEnabled } = props
const isMobileOrTablet = useTabletAndBelowMediaQuery()

const [orders, setOrders] = useState<DataTableType[]>([])
const [total, setTotal] = useState<number | null>(null)
const [page, setPage] = useState(INITIAL_PAGE)
Expand All @@ -41,7 +40,7 @@ const ListingsTable = (props: Props) => {
if (asset.network === Network.MATIC && asset.itemId) {
params.itemId = asset.itemId
} else if (asset.network === Network.ETHEREUM) {
params.nftName = asset.name
params.itemId = asset.id
}

const orderAPI = isOffchainPublicNFTOrdersEnabled ? marketplaceOrderAPI : legacyOrderAPI
Expand Down

0 comments on commit d4239cd

Please sign in to comment.