Skip to content

Commit

Permalink
allow deleting items with an unverified primary email
Browse files Browse the repository at this point in the history
  • Loading branch information
auumgn committed Jul 30, 2024
1 parent cf71a2a commit 1ac333b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/cdk/panel/panel-source/panel-source.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,10 @@ export class PanelSourceComponent implements OnInit {
const primaryEmail = this.userRecord?.emails?.emails?.find(
(email) => email.primary
)
if (primaryEmail && !primaryEmail.verified) {
const hasVerifiedEmail = this.userRecord?.emails?.emails?.some(
(email) => email.verified
)
if (!hasVerifiedEmail) {
this._verificationEmailModalService.openVerificationEmailModal(
primaryEmail.value
)
Expand Down

0 comments on commit 1ac333b

Please sign in to comment.