File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -112,8 +112,10 @@ export const RouteProvider: FC<RouteProviderProps> = (props: RouteProviderProps)
112112}
113113
114114function isActiveRoute ( activePath : string , toolRoute : PlatformRoute ) : boolean {
115- return ! ! ( activePath ?. startsWith ( toolRoute . route )
116- || toolRoute . alternativePaths ?. some ( path => activePath ?. startsWith ( path ) ) )
115+ return ! ! (
116+ activePath ?. startsWith ( toolRoute . route )
117+ || toolRoute . alternativePaths ?. some ( path => activePath ?. startsWith ( path ) )
118+ )
117119}
118120
119121function isRootRoute ( rootLoggedIn : string , rootLoggedOut : string ) :
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ export const workRoutes: Array<PlatformRoute> = [
3030 title : 'Logged Out Landing' ,
3131 } ,
3232 {
33- alternativePaths : [ '/self-service' ] ,
33+ alternativePaths : [ selfServiceRootRoute ] ,
3434 children : [
3535 {
3636 element : < WorkTable /> ,
You can’t perform that action at this time.
0 commit comments