Skip to content

Commit

Permalink
fix: show transferred orders instead of open (#2360)
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmahidalgo authored Jan 30, 2025
1 parent 6db66c4 commit 74f906d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ const OnSaleOrRentList = ({ elements, isLoading, onSaleOrRentType, onFetchAuthor
const fetchOrders = async () => {
if (wallet?.address && elements && !isLoading) {
try {
const response = await fetch(`${config.get('MARKETPLACE_SERVER_URL')}/orders?&owner=${wallet.address}&status=open`)
const response = await fetch(`${config.get('MARKETPLACE_SERVER_URL')}/orders?&owner=${wallet.address}&status=transferred`)
const data: { data: Order[] } = await response.json()
const nftIds = data.data.map(order => `${order.contractAddress}-${order.tokenId}`)
const nftIdsNotInElements = nftIds.filter(nftId => !elements.some(element => element.nft?.id === nftId))
Expand Down

0 comments on commit 74f906d

Please sign in to comment.