magesuite / theme-creativeshop

Open Software License 3.0
38 stars 24 forks source link

fix(addtocart): Fix `Cannot read property 'length' of null` error #56

Open msiewierska opened 3 years ago

msiewierska commented 3 years ago

Not sure yet how exactly it can be reproduced. But this should fix it. You already have such a check at https://github.com/magesuite/theme-creativeshop/blob/next/src/components/addtocart/addtocart.ts#L268 , so seems like it's just missing at the other places.