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 13, 2024
1 parent f1efdef commit 7201c94
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/authentication/components/AuthenticationCallback.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const AuthenticationCallbackComponent: FC = ({ children }) => {
const frontPageUrl = getFrontPageUrl().href;
try {
const user = await USER_MANAGER.signinCallback();
router.push(user.state || frontPageUrl);
// @ts-ignore
const url: string = user?.state ?? frontPageUrl;
router.push(url);
} catch (err) {
router.push(frontPageUrl);
}
Expand Down

0 comments on commit 7201c94

Please sign in to comment.