File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change 22
33import { v4 as uuidv4 } from 'uuid' ;
44
5- import { RootObject , Product } from '@/stores/cart' ;
5+ import { RootObject } from '@/stores/cart' ;
66
77import { ChangeEvent } from 'react' ;
88import { IVariationNodes } from '@/components/Product/AddToCart.component' ;
@@ -182,7 +182,7 @@ export const getFormattedCart = (data: IFormattedCartProps) => {
182182 sourceUrl : process . env . NEXT_PUBLIC_PLACEHOLDER_SMALL_IMAGE_URL ,
183183 srcSet : process . env . NEXT_PUBLIC_PLACEHOLDER_SMALL_IMAGE_URL ,
184184 title : givenProduct . name ,
185- }
185+ } ,
186186 } ;
187187 } ) ;
188188 formattedCart . totalProductsCount = totalProductsCount ;
@@ -279,10 +279,12 @@ export const handleQuantityChange = (
279279 variables : {
280280 input : {
281281 clientMutationId : uuidv4 ( ) ,
282- items : [ {
283- key : cartKey ,
284- quantity : newQty
285- } ] ,
282+ items : [
283+ {
284+ key : cartKey ,
285+ quantity : newQty ,
286+ } ,
287+ ] ,
286288 } ,
287289 } ,
288290 } ) ;
You can’t perform that action at this time.
0 commit comments