Skip to content

Commit

Permalink
runfix: Do not show renew modal right after enrollment
Browse files Browse the repository at this point in the history
  • Loading branch information
atomrc committed Mar 11, 2024
1 parent e89f760 commit 2647c93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/script/E2EIdentity/E2EIdentityEnrollment.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ export class E2EIHandler extends TypedEventEmitter<Events> {
const firingDate = EnrollmentStore.get.timer() || computedFiringDate;
EnrollmentStore.store.timer(firingDate);

const isFirstE2EIActivation = !storedE2eActivatedAt;
const isFirstE2EIActivation = !storedE2eActivatedAt && !identity;
if (isFirstE2EIActivation || firingDate <= Date.now()) {
// We want to automatically trigger the enrollment modal if it's a devices in team that just activated e2eidentity
// Or if the timer is supposed to fire now
Expand Down

0 comments on commit 2647c93

Please sign in to comment.