Skip to content

Commit a0514fb

Browse files
committed
review comments
1 parent a0dcba5 commit a0514fb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src-ts/lib/route-provider/route.provider.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,10 @@ export const RouteProvider: FC<RouteProviderProps> = (props: RouteProviderProps)
112112
}
113113

114114
function 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

119121
function isRootRoute(rootLoggedIn: string, rootLoggedOut: string):

src-ts/tools/work/work.routes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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 />,

0 commit comments

Comments
 (0)