Skip to content

Commit

Permalink
Fix: Signing out on Try-It (#1634)
Browse files Browse the repository at this point in the history
  • Loading branch information
Onokaev authored Apr 8, 2022
1 parent a35c320 commit a17870e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/app/views/authentication/profile/Profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit a17870e

Please sign in to comment.