updated the state by setting currentProductId instead of selectedId. Previously, there was an issue where selectedId was being reassigned to itself without any changes.
Product
Piattaforma Notifiche
How to test
Just test it within the project or in the storybook and try to change the product.
Short description
When opening the product selection dropdown, the current product is not correctly selected (menu item not highlighted in blue).
Preview
ref
List of changes proposed in this pull request
currentProductId
instead ofselectedId
. Previously, there was an issue whereselectedId
was being reassigned to itself without any changes.Product
Piattaforma Notifiche
How to test
Just test it within the project or in the storybook and try to change the product.