Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-1072: fix bug where Email Verification banner wasn't showing #57

Merged
merged 1 commit into from May 11, 2018
Merged
Changes from all commits
Commits
File filter
Filter file types
Jump to
Jump to file
Failed to load files.

Always

Just for now

GH-1072: fix bug where Email Verification banner wasn't showing
  • Loading branch information
IAmThePan committed May 11, 2018
commit 995e164dc9c1639cfd0c99ab2e9b136a935ad7a6
@@ -15,7 +15,7 @@ import React, { Component } from 'react';
import { Link } from 'react-router-dom';
import ClassNames from 'classnames';
import HeaderMenu from './HeaderMenu';
import { sendMessage } from '../utils/msg';
import { sendMessage, sendMessageInPromise } from '../utils/msg';
import { log } from '../../../src/utils/common';

/**
@@ -82,7 +82,7 @@ class Header extends React.Component {
sendMessage('ping', 'sign_in');
this.props.history.push('/login');
} else if (!this.props.is_validated) {
sendMessage('sendVerificationEmail').then((data) => {
sendMessageInPromise('sendVerificationEmail').then((data) => {
this.props.actions.showNotification({
classes: 'success',
text: t('panel_email_verification_sent', data.email),
ProTip! Use n and p to navigate between commits in a pull request.