Skip to content

Commit

Permalink
fix(auth): bind handleUnauthenticated to correct context (#4120)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sofien-Sellami authored May 14, 2024
1 parent 2de102c commit 8fa339f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion platform/app/src/routes/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const createRoutes = ({
exact
path={route.path}
element={
<PrivateRoute handleUnauthenticated={userAuthenticationService.handleUnauthenticated}>
<PrivateRoute handleUnauthenticated={() => userAuthenticationService.handleUnauthenticated()}>
<RouteWithErrorBoundary route={route} />
</PrivateRoute>
}
Expand Down

0 comments on commit 8fa339f

Please sign in to comment.