diff --git a/src/app/views/authentication/profile/Profile.tsx b/src/app/views/authentication/profile/Profile.tsx index f6bd8a70e..bfe3548cc 100644 --- a/src/app/views/authentication/profile/Profile.tsx +++ b/src/app/views/authentication/profile/Profile.tsx @@ -5,6 +5,7 @@ import { useDispatch, useSelector } from 'react-redux'; import { geLocale } from '../../../../appLocale'; import { Mode } from '../../../../types/enums'; import { IRootState } from '../../../../types/root'; +import { signOut } from '../../../services/actions/auth-action-creators'; import { getProfileInfo } from '../../../services/actions/profile-action-creators'; import { translateMessage } from '../../../utils/translate-messages'; import { classNames } from '../../classnames'; @@ -46,11 +47,7 @@ const Profile = (props: any) => { }; const handleSignOut = () => { - const { actions } = props; - - if (actions) { - actions.signOut(); - } + dispatch(signOut()); } const persona: IPersonaSharedProps = { imageUrl: profile.profileImageUrl,