bigcommerce / storefront-data-hooks

Hooks for React Storefront UI Components
MIT License
166 stars 36 forks source link

OptionSelections for cart ItemBody (e.g. in useAddItem) is an object but should be array of objects #88

Closed andrewf414 closed 3 years ago

andrewf414 commented 3 years ago

https://github.com/bigcommerce/storefront-data-hooks/blob/28634a38dd08756e234d5609b695d73653cd7ddb/src/api/cart/index.ts#L21 should be an array. This is per the BigCommerce documentation. I have been able to successfully use the hook sending an array, so it really is just needing that added to the type declaration.

jorgemasta commented 3 years ago

Thanks @andrewf414, we'll work on that

jorgemasta commented 3 years ago

Solved in 1.7.0.