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

Address modal is rendered twice on the restaurant detail page (found locally) #4149

Open
Atala opened this issue Apr 16, 2024 · 3 comments
Open

Comments

@Atala
Copy link
Member

Atala commented Apr 16, 2024

Describe the bug
Address modal is rendered twice on the restaurant detail page. I thought it was due to using react's strict mode but it doesn't seem so.

This is low priority I think, i just need a workaround in cypress tests.

To Reproduce
Steps to reproduce the behavior:

  1. Go to restaurant page
  2. Add a product to the cart to trigger the opening of the address modal
  3. The component is rendered twice, you can search for example for "address-autosuggest__input" in the HTML inspector to find the two inputs

Expected behavior
Modal is only rendered once

Screenshots

image

@Atala Atala changed the title Address modal is rendered twice on the restaurant detail page Address modal is rendered twice on the restaurant detail page (found locally) Apr 16, 2024
@Paul-Eraman-CoopCycle
Copy link
Contributor

is this related to how it sometimes asks for the address multiple times?

@Atala
Copy link
Member Author

Atala commented Apr 16, 2024

I don't know, I don't think so. I think your problem is caused by some code asking automatically for the adress (the customer has already entered it but the program pushing the adress modal doesnt know)

@Paul-Eraman-CoopCycle
Copy link
Contributor

ok thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants