aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/hypixel.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/hypixel.ts b/src/hypixel.ts
index 3569466..7689b55 100644
--- a/src/hypixel.ts
+++ b/src/hypixel.ts
@@ -331,10 +331,12 @@ export async function fetchItemList() {
}
export async function fetchAuctionUncached(uuid: string) {
- return await sendCleanApiRequest(
+ const auctions = await sendCleanApiRequest(
'skyblock/auction',
{ uuid }
)
+ if (!auctions || auctions.auctions.length === 0) return null
+ return auctions.auctions[0]
}
/**