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';
5
5
import OrderDetails from './OrderDetails.component' ;
6
6
import MobileOrderDetails from './MobileOrderDetails.component' ;
7
7
import LoadingSpinner from '../LoadingSpinner/LoadingSpinner.component' ;
8
- // TODO Add more payment methods
9
8
10
9
import { GET_CART } from 'utils/gql/GQL_QUERIES' ;
11
10
import { CHECKOUT_MUTATION } from 'utils/gql/GQL_MUTATIONS' ;
Original file line number Diff line number Diff line change @@ -110,13 +110,13 @@ const SingleProduct = ({ product }) => {
110
110
) }
111
111
< div className = "pt-1 mt-2" >
112
112
{
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
114
115
}
115
- { product . variations ? (
116
+ { product . variations && (
116
117
< AddToCartButton product = { selectedVariation } />
117
- ) : (
118
- < AddToCartButton product = { product } />
119
118
) }
119
+ { ! product . variations && < AddToCartButton product = { product } /> }
120
120
</ div >
121
121
</ div >
122
122
</ div >
Original file line number Diff line number Diff line change @@ -14,7 +14,6 @@ import client from 'utils/apollo/ApolloClient.js';
14
14
* Shows an error if the server is down or unreachable.
15
15
*/
16
16
const Produkter = ( { products } ) => {
17
- // TODO Stop hardcoding this value and do actual error checking
18
17
const error = false ;
19
18
20
19
return (
You can’t perform that action at this time.
0 commit comments