diff options
Diffstat (limited to 'src/hypixel.ts')
-rw-r--r-- | src/hypixel.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/hypixel.ts b/src/hypixel.ts index 5865878..ef16810 100644 --- a/src/hypixel.ts +++ b/src/hypixel.ts @@ -477,6 +477,7 @@ export async function fetchAuctionItems() { isFetchingAuctionItemList = true const itemList = await fetchAuctionItemsUncached() + if (!itemList) return undefined isFetchingAuctionItemList = false cachedAuctionItemListData = itemList @@ -487,6 +488,7 @@ export async function fetchAuctionItems() { async function fetchAuctionItemsUncached() { const auctionItemIds = await fetchItemsAuctionsIds() + if (!auctionItemIds) return undefined const itemList = await fetchItemList() const idsToNames: Map<string, string> = new Map() for (const item of itemList.list) |