This commit is contained in:
Dev 2024-01-14 10:27:45 +00:00
parent 41d491dd16
commit 4efb75ea58

View File

@ -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