Skip to content

Commit 059344a

Browse files
authored
Merge pull request #975 from w3bdesign/develop
Reduce complexity
2 parents 4841666 + 1eb9afb commit 059344a

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

utils/functions/functions.js

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -159,17 +159,12 @@ export const createCheckoutData = (order) => ({
159159
shipToDifferentAddress: false,
160160
paymentMethod: order.paymentMethod,
161161
isPaid: false,
162-
transactionId: 'hjkhjkhsdsdiui',
162+
transactionId: 'fhggdfjgfi',
163163
});
164164

165165
/**
166166
* Get the updated items in the below format required for mutation input.
167167
*
168-
* [
169-
* { "key": "33e75ff09dd601bbe6dd51039152189", "quantity": 1 },
170-
* { "key": "02e74f10e0327ad868d38f2b4fdd6f0", "quantity": 1 },
171-
* ]
172-
*
173168
* Creates an array in above format with the newQty (updated Qty ).
174169
*
175170
*/
@@ -202,10 +197,6 @@ export const getUpdatedItems = (products, newQty, cartKey) => {
202197
/*
203198
* When user changes the quantity, update the cart in localStorage
204199
* Also update the cart in the global Context
205-
*
206-
* @param {Object} event cartKey
207-
*
208-
* @return {void}
209200
*/
210201
export const handleQuantityChange = (
211202
event,

0 commit comments

Comments
 (0)