Skip to content

fix(web): do not allow changing product after registering one#1892

Merged
dgdavid merged 2 commits intomasterfrom
fix-change-product-button
Jan 14, 2025
Merged

fix(web): do not allow changing product after registering one#1892
dgdavid merged 2 commits intomasterfrom
fix-change-product-button

Conversation

@dgdavid
Copy link
Contributor

@dgdavid dgdavid commented Jan 13, 2025

Problem

Although it is not possible to change a product after registering one, web interface still rendering the Change product action and does not redirect to the root path when users try to navigates to the product selection.

Solution

Check if there is a registration code set for both,

  • Do not render the change product action
  • Navigates to root path in case the user reach the selection product path.

Testing


Related to

By limiting the render of the change product button and redirecting
product selection path.
@jreidinger
Copy link
Contributor

manual test works for me as expected.
after_reg

@dgdavid dgdavid merged commit 056e4c3 into master Jan 14, 2025
5 checks passed
@dgdavid dgdavid deleted the fix-change-product-button branch January 14, 2025 08:22
@imobachgs imobachgs mentioned this pull request Feb 26, 2025
imobachgs added a commit that referenced this pull request Feb 26, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants