From ddc8c820a3234bc60d61da1db8da502806dca592 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Mon, 16 May 2022 11:21:13 -0500 Subject: fix bug: the sequel --- src/hypixel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/hypixel.ts') 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) -- cgit