Skip to content

Commit

Permalink
Fix typing error
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikhorluck committed Feb 16, 2024
1 parent 79edaeb commit b90441e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/authentication/components/AuthenticationCallback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ const AuthenticationCallbackComponent: FC = ({ children }) => {
const frontPageUrl = getFrontPageUrl().href;
try {
const user = await USER_MANAGER.signinCallback();
router.push(user.state || frontPageUrl);
// eslint-disable-next-line
// @ts-ignore
const url: string = user?.state ?? frontPageUrl;
router.push(url);
} catch (err) {
router.push(frontPageUrl);
}
Expand Down

0 comments on commit b90441e

Please sign in to comment.