Skip to content

Commit

Permalink
Set the username to the previously used email when toggling hrd
Browse files Browse the repository at this point in the history
  • Loading branch information
luisrudge committed Jul 7, 2017
1 parent 146abae commit c72fe83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/connection/enterprise.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,8 @@ export function toggleHRD(m, email) {
m = setUsername(m, username, 'username', false);
m = tset(m, 'hrdEmail', email);
} else {
const hrdEmail = tget(m, 'hrdEmail');
m = setUsername(m, hrdEmail, hrdEmail.includes('@') ? 'email' : 'username', false);
m = tremove(m, 'hrdEmail');
}

Expand Down

0 comments on commit c72fe83

Please sign in to comment.