File tree Expand file tree Collapse file tree 3 files changed +4
-6
lines changed
Expand file tree Collapse file tree 3 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import Billing from './Billing.component';
55import OrderDetails from './OrderDetails.component' ;
66import MobileOrderDetails from './MobileOrderDetails.component' ;
77import LoadingSpinner from '../LoadingSpinner/LoadingSpinner.component' ;
8- // TODO Add more payment methods
98
109import { GET_CART } from 'utils/gql/GQL_QUERIES' ;
1110import { CHECKOUT_MUTATION } from 'utils/gql/GQL_MUTATIONS' ;
Original file line number Diff line number Diff line change @@ -110,13 +110,13 @@ const SingleProduct = ({ product }) => {
110110 ) }
111111 < div className = "pt-1 mt-2" >
112112 {
113- // Display default AddToCart button if we do not have variations. If we do, send the variationId to AddToCart button
113+ // Display default AddToCart button if we do not have variations.
114+ // If we do, send the variationId to AddToCart button
114115 }
115- { product . variations ? (
116+ { product . variations && (
116117 < AddToCartButton product = { selectedVariation } />
117- ) : (
118- < AddToCartButton product = { product } />
119118 ) }
119+ { ! product . variations && < AddToCartButton product = { product } /> }
120120 </ div >
121121 </ div >
122122 </ div >
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import client from 'utils/apollo/ApolloClient.js';
1414 * Shows an error if the server is down or unreachable.
1515 */
1616const Produkter = ( { products } ) => {
17- // TODO Stop hardcoding this value and do actual error checking
1817 const error = false ;
1918
2019 return (
You can’t perform that action at this time.
0 commit comments