fix(auth): bind handleUnauthenticated to correct context (#4120)

This commit is contained in:
Sofien-Sellami authored and GitHub committed 2024-05-14 12:56:58 -04:00
1 parent 2de102c73c
commit 8fa339f296
1 file changed
+1 -1
+1 -1
View File
@@ -149,7 +149,7 @@ const createRoutes = ({
exact
path={route.path}
element={
<PrivateRoute handleUnauthenticated={userAuthenticationService.handleUnauthenticated}>
<PrivateRoute handleUnauthenticated={() => userAuthenticationService.handleUnauthenticated()}>
<RouteWithErrorBoundary route={route} />
</PrivateRoute>
}