fix: acrithis vendor freezing with fullyStockedVendors
All checks were successful
Build / build (pull_request) Successful in 47s

Permanent offers were not satisfying bin constraints
This commit is contained in:
Sainan 2025-06-27 04:58:47 +02:00
parent 4acd87aae6
commit 81f368e8b4

View File

@ -281,6 +281,10 @@ const generateVendorManifest = (
offersToAdd.push(item);
++offset;
}
if (missingItemsPerBin[item.bin]) {
missingItemsPerBin[item.bin] -= 1;
numOffersThatNeedToMatchABin -= 1;
}
} else {
numCountedOffers += 1 + item.duplicates;
}