Fix variable name typo

This commit is contained in:
Dev 2024-03-30 12:56:19 +00:00
parent efb69d7148
commit 86bada6194

View File

@ -99,11 +99,11 @@ export class TradeHelper
// Decrement trader item count // Decrement trader item count
if (this.traderConfig.persistPurchaseDataInProfile && assortHasBuyRestrictions) if (this.traderConfig.persistPurchaseDataInProfile && assortHasBuyRestrictions)
{ {
const itemPurchaseDat = { const itemPurchaseDetails = {
items: [{ itemId: buyRequestData.item_id, count: buyCount }], items: [{ itemId: buyRequestData.item_id, count: buyCount }],
traderId: buyRequestData.tid, traderId: buyRequestData.tid,
}; };
this.traderHelper.addTraderPurchasesToPlayerProfile(sessionID, itemPurchaseDat, itemPurchased); this.traderHelper.addTraderPurchasesToPlayerProfile(sessionID, itemPurchaseDetails, itemPurchased);
} }
if (assortHasBuyRestrictions) if (assortHasBuyRestrictions)
@ -178,7 +178,6 @@ export class TradeHelper
}; };
this.traderHelper.addTraderPurchasesToPlayerProfile(sessionID, itemPurchaseDat, itemPurchased); this.traderHelper.addTraderPurchasesToPlayerProfile(sessionID, itemPurchaseDat, itemPurchased);
} }
else if (assortHasBuyRestrictions) else if (assortHasBuyRestrictions)
{ {
// Increment non-fence trader item buy count // Increment non-fence trader item buy count