fix(UI): remove flash from update email flow (#54226)

This commit is contained in:
Anna
2024-04-23 05:06:35 -04:00
committed by GitHub
parent e399123604
commit 427de7d95e
2 changed files with 11 additions and 6 deletions

View File

@@ -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);