Skip to content
This repository was archived by the owner on Jul 6, 2020. It is now read-only.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit aec0b3d

Browse files
authoredMay 16, 2020
Merge branch 'master' into add_cookie_consent
2 parents ff16270 + 44e41f9 commit aec0b3d

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
 

‎src/app/components/challenge/challengesettings/challengesettings.component.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,14 @@ export class ChallengesettingsComponent implements OnInit {
105105
*/
106106
remove(email): void {
107107
const SELF = this;
108-
const index = this.bannedEmailIds.indexOf(email);
108+
const index = SELF.bannedEmailIds.indexOf(email);
109109

110110
if (index >= 0) {
111-
this.bannedEmailIds.splice(index, 1);
111+
SELF.bannedEmailIds.splice(index, 1);
112112
}
113+
114+
// updating the banned Email Ids list
115+
SELF.updateBannedEmailList();
113116
}
114117

115118
validateEmail(email) {

0 commit comments

Comments
 (0)
This repository has been archived.