Skip to content

Commit

Permalink
fix SSO stage complete error
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbura committed Jan 19, 2025
1 parent 684c928 commit 3d460bd
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/app/components/uia-stages/SSOStage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,12 @@ export function SSOStage({
const { errorCode, error, session } = stageData;
const [ssoWindow, setSSOWindow] = useState<Window>();

const handleSubmit = useCallback(
() =>
submitAuthDict({
type: AuthType.Sso,
session,
}),
[submitAuthDict, session]
);
const handleSubmit = useCallback(() => {
submitAuthDict({
type: AuthType.Sso,
session,
});
}, [submitAuthDict, session]);

const handleContinue = () => {
const w = window.open(ssoRedirectURL, '_blank');
Expand Down

0 comments on commit 3d460bd

Please sign in to comment.