diff --git a/src/services/purchaseService.ts b/src/services/purchaseService.ts index c889af0c..cf9c6254 100644 --- a/src/services/purchaseService.ts +++ b/src/services/purchaseService.ts @@ -554,6 +554,9 @@ const handleBoosterPackPurchase = async ( BoosterPackItems: "", InventoryChanges: {} }; + if (quantity < 1) { + throw new Error(`invalid quantity for booster pack purchase: ${quantity}`); + } if (quantity > 100) { throw new Error( "attempt to roll over 100 booster packs in a single go. possible but unlikely to be desirable for the user or the server."