From 952a3a1eaf591d5ee3f5278d7f46b34cd592cd3b Mon Sep 17 00:00:00 2001 From: w3bdesign <45217974+w3bdesign@users.noreply.github.com> Date: Sun, 14 Feb 2021 23:57:44 +0100 Subject: [PATCH] Fixing code quality issues --- components/Checkout/MobileOrderDetails.component.jsx | 4 ++-- ...t.jsx => MobileOrderDetailsCartItem.component.jsx} | 0 utils/apollo/ApolloClient.js | 11 +---------- 3 files changed, 3 insertions(+), 12 deletions(-) rename components/Checkout/{MobileOrderDetailsItem.component.jsx => MobileOrderDetailsCartItem.component.jsx} (100%) diff --git a/components/Checkout/MobileOrderDetails.component.jsx b/components/Checkout/MobileOrderDetails.component.jsx index e391604f0..1568bb4c5 100644 --- a/components/Checkout/MobileOrderDetails.component.jsx +++ b/components/Checkout/MobileOrderDetails.component.jsx @@ -1,6 +1,6 @@ import { v4 as uuidv4 } from 'uuid'; -import MobileOrderDetailsItem from './MobileOrderDetailsItem.component'; +import MobileOrderDetailsCartItem from './MobileOrderDetailsCartItem.component'; const MobileOrderDetails = ({ cart }) => { return ( @@ -25,7 +25,7 @@ const MobileOrderDetails = ({ cart }) => { {cart.products.length && cart.products.map((item) => ( - { localStorage.removeItem('woo-session'); localStorage.removeItem('woo-session-expiry'); } - if (session) { operation.setContext(({ headers = {} }) => ({ headers: {