[develop]: Make verificationType to lowercase in conditions.
This commit is contained in:
parent
42d5e1e4b0
commit
4716913427
|
@ -131,9 +131,9 @@ export class RoleVerificationComponent extends BaseComponent implements OnInit,
|
||||||
this.subscriptions.push(this.userRegistryService.getInvitation(params['verify']).subscribe(verification => {
|
this.subscriptions.push(this.userRegistryService.getInvitation(params['verify']).subscribe(verification => {
|
||||||
this.verification = verification;
|
this.verification = verification;
|
||||||
if (this.user.email === this.verification.email.toLowerCase() && this.id === this.verification.entity && this._type === this.verification.type) {
|
if (this.user.email === this.verification.email.toLowerCase() && this.id === this.verification.entity && this._type === this.verification.type) {
|
||||||
if (this.verification.verificationType === 'manager') {
|
if (this.verification.verificationType.toLowerCase() === 'manager') {
|
||||||
this.openManagerModal();
|
this.openManagerModal();
|
||||||
} else if (this.verification.verificationType === 'member') {
|
} else if (this.verification.verificationType.toLowerCase() === 'member') {
|
||||||
this.openMemberModal();
|
this.openMemberModal();
|
||||||
} else {
|
} else {
|
||||||
this.openErrorModal();
|
this.openErrorModal();
|
||||||
|
|
Loading…
Reference in New Issue