@@ -5,7 +5,7 @@ import { Header } from '@/ui/elements/Header';
5
5
import { PreviewButton } from '@/ui/elements/PreviewButton' ;
6
6
import { UserPreview } from '@/ui/elements/UserPreview' ;
7
7
8
- import { withRedirectToAfterSignIn , withRedirectToSignInTask } from '../../common' ;
8
+ import { withRedirectToAfterSignIn } from '../../common' ;
9
9
import { useEnvironment , useSignInContext , useSignOutContext } from '../../contexts' ;
10
10
import { Col , descriptors , Flow , localizationKeys } from '../../customizables' ;
11
11
import { Add , SwitchArrowRight } from '../../icons' ;
@@ -15,10 +15,11 @@ import { useMultisessionActions } from '../UserButton/useMultisessionActions';
15
15
const SignInAccountSwitcherInternal = ( ) => {
16
16
const card = useCardState ( ) ;
17
17
const { userProfileUrl } = useEnvironment ( ) . displayConfig ;
18
- const { afterSignInUrl, path : signInPath , signInUrl } = useSignInContext ( ) ;
18
+ const { afterSignInUrl, path : signInPath , signInUrl, taskUrl } = useSignInContext ( ) ;
19
19
const { navigateAfterSignOut } = useSignOutContext ( ) ;
20
20
const { handleSignOutAllClicked, handleSessionClicked, signedInSessions, handleAddAccountClicked } =
21
21
useMultisessionActions ( {
22
+ taskUrl,
22
23
navigateAfterSignOut,
23
24
afterSwitchSessionUrl : afterSignInUrl ,
24
25
userProfileUrl,
@@ -125,6 +126,4 @@ const SignInAccountSwitcherInternal = () => {
125
126
</ Flow . Part >
126
127
) ;
127
128
} ;
128
- export const SignInAccountSwitcher = withRedirectToSignInTask (
129
- withRedirectToAfterSignIn ( withCardStateProvider ( SignInAccountSwitcherInternal ) ) ,
130
- ) ;
129
+ export const SignInAccountSwitcher = withRedirectToAfterSignIn ( withCardStateProvider ( SignInAccountSwitcherInternal ) ) ;
0 commit comments