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