Address modal is rendered twice on the restaurant detail page (found locally)
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:
- Go to restaurant page
- Add a product to the cart to trigger the opening of the address modal
- The <AddressModal> 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
is this related to how it sometimes asks for the address multiple times?
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)
ok thanks