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

The applyAttributeChange hook mistakenly identifies an accelerated wallet in error #2340

Open
alexkates opened this issue Sep 11, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@alexkates
Copy link

alexkates commented Sep 11, 2024

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

"@shopify/app": "latest",
"@shopify/cli": "latest",
"@shopify/ui-extensions": "2024.4.x",
"@shopify/ui-extensions-react": "2024.4.x",

Describe the bug

When clicking a button in our Checkout Extension that calls applyAttributeChange, we get an error saying "Could not apply mutation applyAttributeChange: the buyer is using an accelerated wallet".

As you'll see in the video, I don't believe we are in an express checkout flow or using an accelerated wallet.

Furthermore, if I attempt to recreate this in-cognito, the applyAttributeChange call works as expected.

Steps to reproduce the behavior:

To re-create this in one of our partner Shopify sites ...

  1. Go to https://www.hatchcollection.com/products/the-hatch-boyfriend-maternity-jean?color=destroyed-light-wash
  2. Click Add to Bag
  3. Click Checkout from the cart-flyout
  4. Open developer tools and look at errors
  5. Click Opt In for the Croissant Checkout Extension, next to "Get Guaranteed Buyback"

Expected behavior

Clicking the Opt In button should add the product to the cart line items and set the croissant_opt_in flag to true on the cart attributes.

Screenshots

Accelerated.Wallet.Bug.mp4

Additional context

It doesn't break for everyone in our company, but enough people are able to recreate it. Some of us seem to be incorrectly in an express checkout? We're not entirely sure.

Also, it looks like this thread may have been circling around a similar thing #1511 (comment)

@alexkates alexkates added the bug Something isn't working label Sep 11, 2024
@alexkates
Copy link
Author

Has anyone been able to look at this or have any questions we can help answer?

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