0
0
mirror of https://github.com/sp-tarkov/server.git synced 2025-02-13 09:50:43 -05:00

Added nullguard inside getOffersForBuild when ragfairOfferService.getOffersOfType returns undefined

This commit is contained in:
Chomp 2025-01-11 11:58:00 +00:00
parent 6081a19cab
commit accedf24c9

View File

@ -216,6 +216,10 @@ export class RagfairOfferHelper {
for (const desiredItemTpl of Object.keys(searchRequest.buildItems)) {
const matchingOffers = this.ragfairOfferService.getOffersOfType(desiredItemTpl);
if (!matchingOffers) {
// No offers found for this item, skip
continue;
}
for (const offer of matchingOffers) {
// Dont show pack offers
if (offer.sellInOnePiece) {