From 95d0fa9f8e8fe36fd909f9a2a1a9153efe233e07 Mon Sep 17 00:00:00 2001 From: Brooklyn F <73204264+BrookTheBook@users.noreply.github.com> Date: Mon, 18 Jan 2021 15:07:51 -0500 Subject: [PATCH] Added Function to Disable Quantity when Out of Stock I added the function that disables that disables the quantity feature when the product is out of stock. --- src/components/ProductPage/ProductForm.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/ProductPage/ProductForm.js b/src/components/ProductPage/ProductForm.js index 37f4f693..90ba2cb8 100644 --- a/src/components/ProductPage/ProductForm.js +++ b/src/components/ProductPage/ProductForm.js @@ -199,6 +199,7 @@ class ProductForm extends Component { step="1" onChange={this.handleChange} value={this.state.quantity} + disabled={isOutOfStock} /> {hasVariants && (