diff --git a/01-frontend/public/locales/de/translation.json b/01-frontend/public/locales/de/translation.json index e2e6254..2461abe 100644 --- a/01-frontend/public/locales/de/translation.json +++ b/01-frontend/public/locales/de/translation.json @@ -4,6 +4,7 @@ "freeShipping": "Kostenloser Versand ab 50€ Bestellwert", "inStock": "Verfügbar", "outOfStock": "Ausverkauft", + "quantity": "Anzahl", "rateThisProduct": "Dieses Produkt bewerten", "ratingFrom": "Bewertung vom", "review": "Produktrezension (optional)", diff --git a/01-frontend/public/locales/en/translation.json b/01-frontend/public/locales/en/translation.json index b7b20d1..a770bee 100644 --- a/01-frontend/public/locales/en/translation.json +++ b/01-frontend/public/locales/en/translation.json @@ -4,6 +4,7 @@ "freeShipping": "Free shipping for orders over 50€", "inStock": "In stock", "outOfStock": "Out of stock", + "quantity": "Quantity", "rateThisProduct": "Rate this product", "ratingFrom": "Rating from", "review": "Product review (optional)", diff --git a/01-frontend/src/helper/productpage/ProductInfo.tsx b/01-frontend/src/helper/productpage/ProductInfo.tsx index 523938e..1fa69e2 100644 --- a/01-frontend/src/helper/productpage/ProductInfo.tsx +++ b/01-frontend/src/helper/productpage/ProductInfo.tsx @@ -129,7 +129,7 @@ export default function ProductInfo({ item }: { item: Item }) { setQuantity(Math.max(1, parseInt(e.target.value)))} InputProps={{ inputProps: { min: 1, max: item.stock } }}