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:
parent
6081a19cab
commit
accedf24c9
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user