diff options
-rw-r--r-- | src/hypixel.ts | 2 |
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) |