Skip to content

Commit 752bb64

Browse files
committed
1.0.6
1 parent c723eea commit 752bb64

File tree

4 files changed

+171
-168
lines changed

4 files changed

+171
-168
lines changed

components/Cart/AddToCartButton.component.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ const AddToCartButton = ({ product }) => {
5555
input: productQueryInput,
5656
},
5757
onCompleted: () => {
58-
console.log("Completed")
59-
// Update the cart with new values in React context.
60-
refetch();
58+
console.log('Completed');
59+
// Update the cart with new values in React context.
60+
refetch();
6161
// If error.
6262
if (addToCartError) {
6363
setRequestError(addToCartError.graphQLErrors[0].message);
6464
}
65-
65+
6666
// Show View Cart Button
6767
setShowViewCart(true);
6868
setshowAddToCart(true);

components/Cart/CartPage/CartItemsContainer.component.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const CartItemsContainer = () => {
2121
notifyOnNetworkStatusChange: true,
2222
onCompleted: () => {
2323
refetch();
24-
24+
2525
// Update cart in the localStorage.
2626
const updatedCart = getFormattedCart(data);
2727
localStorage.setItem('woocommerce-cart', JSON.stringify(updatedCart));

0 commit comments

Comments
 (0)