From e7b565d2a78485b4a938d180c68fea85dcc066f3 Mon Sep 17 00:00:00 2001 From: w3bdesign <45217974+w3bdesign@users.noreply.github.com> Date: Sat, 31 Dec 2022 02:43:01 +0100 Subject: [PATCH] Reduce complexity --- utils/functions/functions.js | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/utils/functions/functions.js b/utils/functions/functions.js index 77338c458..9fe43afeb 100644 --- a/utils/functions/functions.js +++ b/utils/functions/functions.js @@ -159,17 +159,12 @@ export const createCheckoutData = (order) => ({ shipToDifferentAddress: false, paymentMethod: order.paymentMethod, isPaid: false, - transactionId: 'hjkhjkhsdsdiui', + transactionId: 'fhggdfjgfi', }); /** * Get the updated items in the below format required for mutation input. * - * [ - * { "key": "33e75ff09dd601bbe6dd51039152189", "quantity": 1 }, - * { "key": "02e74f10e0327ad868d38f2b4fdd6f0", "quantity": 1 }, - * ] - * * Creates an array in above format with the newQty (updated Qty ). * */ @@ -202,10 +197,6 @@ export const getUpdatedItems = (products, newQty, cartKey) => { /* * When user changes the quantity, update the cart in localStorage * Also update the cart in the global Context - * - * @param {Object} event cartKey - * - * @return {void} */ export const handleQuantityChange = ( event,