Skip to content

Commit cc2eeef

Browse files
committed
feat(users): Add selector for activeFlags
1 parent 062961c commit cc2eeef

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/app/core/store/user/user.selectors.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,4 +55,9 @@ export class UserSelectors {
5555
static isAuthenticated(state: UserStateModel): boolean {
5656
return !!state.currentUser.data || !!localStorage.getItem('currentUser');
5757
}
58+
59+
@Selector([UserState])
60+
static getActiveFlags(state: UserStateModel): string[] {
61+
return state.activeFlags || [];
62+
}
5863
}

0 commit comments

Comments
 (0)