fix(auth): bind handleUnauthenticated to correct context (#4120)
This commit is contained in:
parent
2de102c73c
commit
8fa339f296
@ -149,7 +149,7 @@ const createRoutes = ({
|
|||||||
exact
|
exact
|
||||||
path={route.path}
|
path={route.path}
|
||||||
element={
|
element={
|
||||||
<PrivateRoute handleUnauthenticated={userAuthenticationService.handleUnauthenticated}>
|
<PrivateRoute handleUnauthenticated={() => userAuthenticationService.handleUnauthenticated()}>
|
||||||
<RouteWithErrorBoundary route={route} />
|
<RouteWithErrorBoundary route={route} />
|
||||||
</PrivateRoute>
|
</PrivateRoute>
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user