fix possibly concatting undefined
All checks were successful
Build / build (20) (push) Successful in 1m7s
Build / build (18) (push) Successful in 42s
Build / build (22) (push) Successful in 42s
Build / build (18) (pull_request) Successful in 1m8s
Build / build (20) (pull_request) Successful in 1m7s
Build / build (22) (pull_request) Successful in 39s
All checks were successful
Build / build (20) (push) Successful in 1m7s
Build / build (18) (push) Successful in 42s
Build / build (22) (push) Successful in 42s
Build / build (18) (pull_request) Successful in 1m8s
Build / build (20) (pull_request) Successful in 1m7s
Build / build (22) (pull_request) Successful in 39s
This commit is contained in:
parent
ad50f61ab6
commit
88982efc90
@ -63,7 +63,7 @@ export const handlePurchase = async (
|
||||
? manifest.VendorInfo.ItemManifest.find(x => x.Id.$oid == ItemId)
|
||||
: manifest.VendorInfo.ItemManifest.find(x => x.StoreItem == purchaseRequest.PurchaseParams.StoreItem);
|
||||
if (!offer) {
|
||||
throw new Error(`unknown vendor offer: ${ItemId}`);
|
||||
throw new Error(`unknown vendor offer: ${ItemId ? ItemId : purchaseRequest.PurchaseParams.StoreItem}`);
|
||||
}
|
||||
if (offer.ItemPrices) {
|
||||
handleItemPrices(
|
||||
|
Loading…
x
Reference in New Issue
Block a user