Shopify / hydrogen

Hydrogen lets you build faster headless storefronts in less time, on Shopify.
https://hydrogen.shop
MIT License
1.19k stars 241 forks source link

Cart.cost is sometimes undefined #2034

Closed nik0kin closed 2 days ago

nik0kin commented 3 weeks ago

What is the location of your example repository?

No response

Which package or tool is having this issue?

Hydrogen

What version of that package or tool are you using?

2024.1.5

What version of Remix are you using?

2.8.0

Steps to Reproduce

Unknown

Expected Behavior

https://github.com/Shopify/hydrogen/blob/main/packages/hydrogen-react/src/storefront-api-types.d.ts#L553 Cart.cost should be marked as optional

Actual Behavior

Cart.cost is not always defined

juanpprieto commented 3 days ago

For SFAPI related possible bugs please submit at https://github.com/Shopify/storefront-api-feedback/discussions