fix quantity in history entry
All checks were successful
Build / build (18) (push) Successful in 46s
Build / build (22) (push) Successful in 1m3s
Build / build (20) (push) Successful in 59s
Build / build (18) (pull_request) Successful in 47s
Build / build (20) (pull_request) Successful in 1m5s
Build / build (22) (pull_request) Successful in 1m1s
All checks were successful
Build / build (18) (push) Successful in 46s
Build / build (22) (push) Successful in 1m3s
Build / build (20) (push) Successful in 59s
Build / build (18) (pull_request) Successful in 47s
Build / build (20) (pull_request) Successful in 1m5s
Build / build (22) (pull_request) Successful in 1m1s
This commit is contained in:
parent
163aeb58ee
commit
8e0ff9d7f6
@ -69,7 +69,6 @@ export const handlePurchase = async (
|
||||
inventoryChanges
|
||||
);
|
||||
}
|
||||
purchaseRequest.PurchaseParams.Quantity *= offer.QuantityMultiplier;
|
||||
if (!config.noVendorPurchaseLimits) {
|
||||
inventory.RecentVendorPurchases ??= [];
|
||||
let vendorPurchases = inventory.RecentVendorPurchases.find(
|
||||
@ -110,6 +109,7 @@ export const handlePurchase = async (
|
||||
}
|
||||
];
|
||||
}
|
||||
purchaseRequest.PurchaseParams.Quantity *= offer.QuantityMultiplier;
|
||||
} else if (!ExportVendors[purchaseRequest.PurchaseParams.SourceId!]) {
|
||||
throw new Error(`unknown vendor: ${purchaseRequest.PurchaseParams.SourceId!}`);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user