Skip to content

Commit 952a3a1

Browse files
committed
Fixing code quality issues
1 parent 2bf6d3d commit 952a3a1

File tree

3 files changed

+3
-12
lines changed

3 files changed

+3
-12
lines changed

components/Checkout/MobileOrderDetails.component.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { v4 as uuidv4 } from 'uuid';
22

3-
import MobileOrderDetailsItem from './MobileOrderDetailsItem.component';
3+
import MobileOrderDetailsCartItem from './MobileOrderDetailsCartItem.component';
44

55
const MobileOrderDetails = ({ cart }) => {
66
return (
@@ -25,7 +25,7 @@ const MobileOrderDetails = ({ cart }) => {
2525
<tbody className="flex-1 sm:flex-none">
2626
{cart.products.length &&
2727
cart.products.map((item) => (
28-
<MobileOrderDetailsItem
28+
<MobileOrderDetailsCartItem
2929
key={item.productId}
3030
item={item}
3131
products={cart.products}

utils/apollo/ApolloClient.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,9 @@ import {
44
InMemoryCache,
55
createHttpLink,
66
ApolloLink,
7-
//IntrospectionFragmentMatcher,
87
} from '@apollo/client';
98

10-
import introspectionQueryResultData from './fragmentTypes';
11-
12-
import WOO_CONFIG from 'utils/config/nextConfig';
13-
14-
// Fragment matcher.
15-
/*const fragmentMatcher = new IntrospectionFragmentMatcher({
16-
introspectionQueryResultData,
17-
});*/
9+
import WOO_CONFIG from 'utils/config/nextConfig';
1810

1911
/**
2012
* Middleware operation
@@ -37,7 +29,6 @@ export const middleware = new ApolloLink((operation, forward) => {
3729
localStorage.removeItem('woo-session');
3830
localStorage.removeItem('woo-session-expiry');
3931
}
40-
4132
if (session) {
4233
operation.setContext(({ headers = {} }) => ({
4334
headers: {

0 commit comments

Comments
 (0)