[develop]: Make verificationType to lowercase in conditions.

This commit is contained in:
Konstantinos Triantafyllou 2024-10-14 13:42:45 +03:00
parent 42d5e1e4b0
commit 4716913427
1 changed files with 2 additions and 2 deletions

View File

@ -131,9 +131,9 @@ export class RoleVerificationComponent extends BaseComponent implements OnInit,
this.subscriptions.push(this.userRegistryService.getInvitation(params['verify']).subscribe(verification => {
this.verification = verification;
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();
} else if (this.verification.verificationType === 'member') {
} else if (this.verification.verificationType.toLowerCase() === 'member') {
this.openMemberModal();
} else {
this.openErrorModal();