File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
client/src/components/routes/detail Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -52,7 +52,10 @@ function ProductDetails(props) {
5252 if ( selectedProduct && ! _ . isEmpty ( addToCart . productQty ) ) {
5353 log . info ( `[Product Detail] addToCart = ${ JSON . stringify ( addToCart ) } ` )
5454 log . info ( `[Product Detail] setProductQuantity = ${ addToCart . productQty [ selectedProduct . id ] } ` )
55- setProductQuantity ( addToCart . productQty [ selectedProduct . id ] )
55+ if ( addToCart . productQty [ selectedProduct . id ] ) {
56+ setProductQuantity ( addToCart . productQty [ selectedProduct . id ] )
57+ }
58+
5659 }
5760
5861 // eslint-disable-next-line
@@ -199,11 +202,11 @@ function ProductDetails(props) {
199202 </ Grid >
200203
201204 < Grid item container alignItems = "center" >
202- < Grid item xs = { 1 } style = { { fontSize : '1.2rem' , fontWeight : "lighter" } } >
205+ < Grid item style = { { fontSize : '1.2rem' , fontWeight : "lighter" , paddingRight : 10 } } >
203206 Qty:
204207 </ Grid >
205208
206- < Grid item xs = { 1 } style = { { fontSize : '1.2rem' , fontWeight : "bold" } } >
209+ < Grid item style = { { fontSize : '1.2rem' , fontWeight : "bold" , paddingRight : 20 } } >
207210 { productQuantity }
208211 </ Grid >
209212
You can’t perform that action at this time.
0 commit comments