!wip fixed lint errors

pull/2142/head
Jamie 7 years ago
parent 7a54ec673f
commit cd2011c6cc

@ -57,15 +57,15 @@ export class NewsletterComponent implements OnInit {
if(match && match.length > 0) { if(match && match.length > 0) {
this.settings.externalEmails.push(this.emailToAdd); this.settings.externalEmails.push(this.emailToAdd);
this.emailToAdd = ""; this.emailToAdd = "";
} else{ } else {
this.notificationService.error("Please enter a valid email address") this.notificationService.error("Please enter a valid email address");
} }
} }
} }
public deleteEmail(email: string) { public deleteEmail(email: string) {
var index = this.settings.externalEmails.indexOf(email); // <-- Not supported in <IE9 const index = this.settings.externalEmails.indexOf(email); // <-- Not supported in <IE9
if (index !== -1) { if (index !== -1) {
this.settings.externalEmails.splice(index, 1); this.settings.externalEmails.splice(index, 1);
} }
} }

Loading…
Cancel
Save