fix: customer route

This commit is contained in:
Rafael Taranto 2025-05-16 08:13:11 +01:00
parent 910f996db6
commit a3dc450497
2 changed files with 5 additions and 2 deletions

View file

@ -105,7 +105,10 @@ const Routes = () => {
<Transition
className={wrapperClasses}
{...transitionProps}
in={location === route}
in={
location === route ||
(route.includes(':') && location.startsWith(route.split(':')[0]))
}
mountOnEnter
unmountOnExit>
<div className={wrapperClasses}>