From 3d460bd9f2d9f27490a6cc40ca12881aeff28479 Mon Sep 17 00:00:00 2001 From: Ajay Bura <32841439+ajbura@users.noreply.github.com> Date: Sun, 19 Jan 2025 22:38:40 +0530 Subject: [PATCH] fix SSO stage complete error --- src/app/components/uia-stages/SSOStage.tsx | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/src/app/components/uia-stages/SSOStage.tsx b/src/app/components/uia-stages/SSOStage.tsx index 0c027e770..dbeb5b103 100644 --- a/src/app/components/uia-stages/SSOStage.tsx +++ b/src/app/components/uia-stages/SSOStage.tsx @@ -14,14 +14,12 @@ export function SSOStage({ const { errorCode, error, session } = stageData; const [ssoWindow, setSSOWindow] = useState(); - 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');