From 6d1bf82c7d513208e13ceafbcb814e6f9074f7c6 Mon Sep 17 00:00:00 2001 From: nsemets Date: Mon, 1 Sep 2025 16:49:53 +0300 Subject: [PATCH] fix(emails): fixed bug --- src/app/core/store/user-emails/user-emails.state.ts | 6 ++++++ 1 file changed, 6 insertions(+) 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,