Closed chrissysemens closed 1 year ago
Hey all,
I've installed use-shopping-cart at current version 3.1.2.
On attempting to add an item to a cart, I'm getting an error stating sku is missing in my props:
This is strange in itself as I can see in the typings that there's a union between id and other items:
When I log my product out on the same onClick the product has a valid id:
Just wondered if anyone can spot anything I'm doing wrong or if anyone has experienced a similar problem.
Thanks in advance.
I've resolved this. I was actually missing some price info, but the error was misleading.
Hey all,
I've installed use-shopping-cart at current version 3.1.2.
On attempting to add an item to a cart, I'm getting an error stating sku is missing in my props:
This is strange in itself as I can see in the typings that there's a union between id and other items:![image](https://user-images.githubusercontent.com/46443589/190875036-f16002a6-0d92-4928-8c18-bf0362d52921.png)
When I log my product out on the same onClick the product has a valid id:![image](https://user-images.githubusercontent.com/46443589/190875070-e307d304-fc22-4290-8151-f6f759d4d6d2.png)
Just wondered if anyone can spot anything I'm doing wrong or if anyone has experienced a similar problem.
Thanks in advance.