From 4efb75ea587e2b7bd01dccb19e2a6df1182b1e6a Mon Sep 17 00:00:00 2001 From: Dev Date: Sun, 14 Jan 2024 10:27:45 +0000 Subject: [PATCH] Fix typo --- project/src/helpers/TradeHelper.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/project/src/helpers/TradeHelper.ts b/project/src/helpers/TradeHelper.ts index 601e4ec1..30e151b6 100644 --- a/project/src/helpers/TradeHelper.ts +++ b/project/src/helpers/TradeHelper.ts @@ -80,8 +80,8 @@ export class TradeHelper { const allOffers = this.ragfairServer.getOffers(); // We store ragfair offerid in buyRequestData.item_id - const offersWithItem = allOffers.find((x) => x._id === buyRequestData.item_id); - itemPurchased = offersWithItem.items[0]; + const offerWithItem = allOffers.find((x) => x._id === buyRequestData.item_id); + itemPurchased = offerWithItem.items[0]; } else { @@ -129,10 +129,10 @@ export class TradeHelper if (buyRequestData.tid.toLocaleLowerCase() === "ragfair") { const allOffers = this.ragfairServer.getOffers(); - const offersWithItem = allOffers.find((x) => x._id === buyRequestData.item_id); + const offerWithItem = allOffers.find((x) => x._id === buyRequestData.item_id); const request: IAddItemDirectRequest = { - itemWithModsToAdd: offersWithItem.items, + itemWithModsToAdd: offerWithItem.items, foundInRaid: true, callback: callback, useSortingTable: true