From c878b338e8d5ba0b2ec33b55c68226485f270e18 Mon Sep 17 00:00:00 2001 From: mat <27899617+mat-1@users.noreply.github.com> Date: Mon, 16 May 2022 11:16:04 -0500 Subject: fix bug --- src/hypixel.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hypixel.ts b/src/hypixel.ts index 060cff4..42fc5af 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) === null) { auctions.push(simpleAuction) // keep only the last 100 items if (auctions.length > 100) -- cgit