Skip to content
This repository has been archived by the owner on Mar 13, 2024. It is now read-only.

MM-25889 - Restored announcement type for email verification (#5706) #5750

Merged
merged 1 commit into from
Jun 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions components/do_verify_email/do_verify_email.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {ActionFunc, ActionResult} from 'mattermost-redux/types/actions';

import {trackEvent} from 'actions/diagnostics_actions.jsx';
import {browserHistory} from 'utils/browser_history';
import {AnnouncementBarMessages, VerifyEmailErrors} from 'utils/constants';
import {AnnouncementBarTypes, AnnouncementBarMessages, VerifyEmailErrors} from 'utils/constants';
import logoImage from 'images/logo.png';
import BackButton from 'components/common/back_button';
import LoadingScreen from 'components/loading_screen';
Expand Down Expand Up @@ -67,7 +67,8 @@ export default class DoVerifyEmail extends React.PureComponent<Props, State> {
if (this.props.isLoggedIn) {
this.props.actions.logError({
message: AnnouncementBarMessages.EMAIL_VERIFIED,
}, true);
type: AnnouncementBarTypes.SUCCESS,
} as any, true);
trackEvent('settings', 'verify_email');
const me = await this.props.actions.getMe();
if ('data' in me) {
Expand Down