aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/hypixel.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hypixel.ts b/src/hypixel.ts
index 42fc5af..fbb01f0 100644
--- a/src/hypixel.ts
+++ b/src/hypixel.ts
@@ -409,7 +409,7 @@ export async function periodicallyFetchRecentlyEndedAuctions() {
bin: auction.bin,
}
// make sure the auction isn't already in there
- if (auctions.findIndex((a) => a.id === simpleAuction.id) === null) {
+ if (auctions.findIndex((a) => a.id === simpleAuction.id) === -1) {
auctions.push(simpleAuction)
// keep only the last 100 items
if (auctions.length > 100)