diff --git a/src/app/core/store/user-emails/user-emails.state.ts b/src/app/core/store/user-emails/user-emails.state.ts index 734f6ac82..12508728c 100644 --- a/src/app/core/store/user-emails/user-emails.state.ts +++ b/src/app/core/store/user-emails/user-emails.state.ts @@ -23,6 +23,12 @@ export class UserEmailsState { @Action(GetEmails) getEmails(ctx: StateContext) { + const currentUser = this.store.selectSnapshot(UserSelectors.getCurrentUser); + + if (!currentUser) { + return; + } + ctx.patchState({ emails: { ...ctx.getState().emails,