diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/cleaners/skyblock/auctions.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cleaners/skyblock/auctions.ts b/src/cleaners/skyblock/auctions.ts index a43001b..d47e5f2 100644 --- a/src/cleaners/skyblock/auctions.ts +++ b/src/cleaners/skyblock/auctions.ts @@ -43,7 +43,7 @@ export async function cleanAuctions(data: typedHypixelApi.SkyBlockRequestAuction } async function cleanAuction(auction: typedHypixelApi.SkyBlockRequestAuctionResponse['auctions'][number]): Promise<Auction> { - const buyerUuid = auction.end ? auction.bids[auction.bids.length - 1].bidder : null + const buyerUuid = auction.end ? (auction.bids[auction.bids.length - 1]?.bidder ?? null) : null const buyer = buyerUuid ? await cached.fetchPlayer(buyerUuid, false) : null return { id: auction.uuid, |