Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useDeliveryGroups() returning option with undefined selectedDeliveryOption in Shop Pay flow but working as expected in regular checkout #2370

Open
rbarreca opened this issue Sep 24, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@rbarreca
Copy link

Please list the package(s) involved in the issue, and include the version you are using

"@shopify/ui-extensions": "2024.07.x",
"@shopify/ui-extensions-react": "2024.07.x",

Describe the bug

useDeliveryGroups() returning option with undefined selectedDeliveryOption in Shop Pay flow but working as expected in regular checkout.

Steps to reproduce the behavior:

  1. Create a custom shipping (not sure if this is pertinent, but it's all we use so including)
  2. Create a thank you block extension with const deliveryGroups = useDeliveryGroups(); console.log(deliveryGroups);
  3. Run it with regular checkout flow then with Shop Pay

Expected behavior

In Shop Pay, selectedDeliveryOption is undefined while in regular checkout it's working as expected.

Screenshots

Image
Image

Additional context

Relevant to #1173

@rbarreca rbarreca added the bug Something isn't working label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant