Skip to content

Commit

Permalink
fix(Security Center): space before email verified emails
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLeoB committed Aug 8, 2018
1 parent 1ab4bdf commit 694cb63
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -448,6 +448,13 @@ const selectMessage = (message, data = undefined) => {
defaultMessage='Mobile number has been successfully updated. Verification SMS has been sent.'
/>
)
case C.MOBILE_RESEND_SUCCESS:
return (
<FormattedMessage
id='components.alerts.mobile_resend_success'
defaultMessage='Verification SMS has been sent.'
/>
)
case C.MOBILE_VERIFY_ERROR:
return (
<FormattedMessage
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export default ({ coreSagas }) => {
const updateMobile = function*(action) {
try {
yield call(coreSagas.settings.setMobile, action.payload)

yield put(actions.alerts.displaySuccess(C.MOBILE_UPDATE_SUCCESS))
} catch (e) {
yield put(actions.logs.logErrorMessage(logLocation, 'updateMobile', e))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ class MobileNumberVerifyContainer extends React.PureComponent {

handleResend () {
this.props.settingsActions.updateMobile(this.props.mobileNumber)

}

handleChange () {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ const EmailAddress = props => {
id='scenes.security.email.verifieddescription'
defaultMessage='You’ve verified '
/>
{email}
<span>&nbsp;{email}</span>
<FormattedMessage
id='scenes.security.email.verifieddescription2'
defaultMessage='. Select ‘Change Email’ to modify this existing address. '
Expand Down

0 comments on commit 694cb63

Please sign in to comment.