Skip to content

Commit

Permalink
Merge pull request #352 from w3bdesign/develop
Browse files Browse the repository at this point in the history
Fixing code quality issues
  • Loading branch information
w3bdesign authored Feb 14, 2021
2 parents c972e3a + 952a3a1 commit 88a1405
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 12 deletions.
4 changes: 2 additions & 2 deletions components/Checkout/MobileOrderDetails.component.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { v4 as uuidv4 } from 'uuid';

import MobileOrderDetailsItem from './MobileOrderDetailsItem.component';
import MobileOrderDetailsCartItem from './MobileOrderDetailsCartItem.component';

const MobileOrderDetails = ({ cart }) => {
return (
Expand All @@ -25,7 +25,7 @@ const MobileOrderDetails = ({ cart }) => {
<tbody className="flex-1 sm:flex-none">
{cart.products.length &&
cart.products.map((item) => (
<MobileOrderDetailsItem
<MobileOrderDetailsCartItem
key={item.productId}
item={item}
products={cart.products}
Expand Down
11 changes: 1 addition & 10 deletions utils/apollo/ApolloClient.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,9 @@ import {
InMemoryCache,
createHttpLink,
ApolloLink,
//IntrospectionFragmentMatcher,
} from '@apollo/client';

import introspectionQueryResultData from './fragmentTypes';

import WOO_CONFIG from 'utils/config/nextConfig';

// Fragment matcher.
/*const fragmentMatcher = new IntrospectionFragmentMatcher({
introspectionQueryResultData,
});*/
import WOO_CONFIG from 'utils/config/nextConfig';

/**
* Middleware operation
Expand All @@ -37,7 +29,6 @@ export const middleware = new ApolloLink((operation, forward) => {
localStorage.removeItem('woo-session');
localStorage.removeItem('woo-session-expiry');
}

if (session) {
operation.setContext(({ headers = {} }) => ({
headers: {
Expand Down

1 comment on commit 88a1405

@vercel
Copy link

@vercel vercel bot commented on 88a1405 Feb 14, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.