fix: Map opportunities to extract auction objects
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled
Some checks failed
CI / Frontend Lint & Type Check (push) Has been cancelled
CI / Frontend Build (push) Has been cancelled
CI / Backend Lint (push) Has been cancelled
CI / Backend Tests (push) Has been cancelled
CI / Docker Build (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
Deploy / Build & Push Images (push) Has been cancelled
Deploy / Deploy to Server (push) Has been cancelled
Deploy / Notify (push) Has been cancelled
This commit is contained in:
@ -61,7 +61,8 @@ export default function MarketPage() {
|
||||
break
|
||||
case 'opportunities':
|
||||
const oppData = await api.getAuctionOpportunities()
|
||||
data = oppData.opportunities || []
|
||||
// Extract auction objects from opportunities
|
||||
data = (oppData.opportunities || []).map((o: any) => o.auction)
|
||||
break
|
||||
default:
|
||||
const auctionData = await api.getAuctions(undefined, undefined, undefined, undefined, undefined, false, sortBy, 50)
|
||||
|
||||
Reference in New Issue
Block a user