feat: acquisition of peely pix + free pack for first visit #1292

Merged
Sainan merged 6 commits from free-stickers into main 2025-03-23 05:07:15 -07:00
Showing only changes of commit 88982efc90 - Show all commits

View File

@ -63,7 +63,7 @@ export const handlePurchase = async (
? manifest.VendorInfo.ItemManifest.find(x => x.Id.$oid == ItemId) ? manifest.VendorInfo.ItemManifest.find(x => x.Id.$oid == ItemId)
: manifest.VendorInfo.ItemManifest.find(x => x.StoreItem == purchaseRequest.PurchaseParams.StoreItem); : manifest.VendorInfo.ItemManifest.find(x => x.StoreItem == purchaseRequest.PurchaseParams.StoreItem);
if (!offer) { if (!offer) {
throw new Error(`unknown vendor offer: ${ItemId}`); throw new Error(`unknown vendor offer: ${ItemId ? ItemId : purchaseRequest.PurchaseParams.StoreItem}`);
} }
if (offer.ItemPrices) { if (offer.ItemPrices) {
handleItemPrices( handleItemPrices(