mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-01-08 12:04:29 -05:00
fix(UI): remove flash from update email flow (#54226)
This commit is contained in:
@@ -526,15 +526,17 @@ export default function initializeUser(User) {
|
||||
Observable.fromPromise(userUpdate)
|
||||
);
|
||||
})
|
||||
.map(
|
||||
() =>
|
||||
'Check your email and click the link we sent you to confirm' +
|
||||
' your new email address.'
|
||||
);
|
||||
.map({
|
||||
type: 'info',
|
||||
message: dedent`Check your email and click the link we sent you to confirm your new email address.`
|
||||
});
|
||||
}
|
||||
|
||||
User.prototype.requestAuthEmail = requestAuthEmail;
|
||||
|
||||
/**
|
||||
* @param {String} requestedEmail
|
||||
*/
|
||||
function requestUpdateEmail(requestedEmail) {
|
||||
const newEmail = ensureLowerCaseString(requestedEmail);
|
||||
const currentEmail = ensureLowerCaseString(this.email);
|
||||
|
||||
Reference in New Issue
Block a user