Skip to content

Commit

Permalink
refactor(identities): Tidy up code/syntax as requested in review
Browse files Browse the repository at this point in the history
  • Loading branch information
castaway committed Apr 2, 2024
1 parent b27f444 commit 549a795
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions src/app/profiles/profile.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,6 @@ export class ProfileService {
this.rmmapi.resendValidationEmail(id).subscribe(
reply => {
this.refresh();
if ( !reply ) {
// snackbar error msg?
}
},
);
}
Expand Down
3 changes: 1 addition & 2 deletions src/app/profiles/profiles.editor.modal.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,8 @@ export class ProfilesEditorModalComponent {
this.tinymce_plugin = new TinyMCEPlugin();
if (!identity || !Object.keys(identity).length) {
identity = new Identity;
const self = this;
identity.name = ['first_name', 'last_name'].map((attr) => {
return self.profileService.me[attr];
return this.profileService.me[attr];
}).join(' ');
}
if (identity.email) {
Expand Down

0 comments on commit 549a795

Please sign in to comment.