We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e98fce4 + 260d339 commit a157b32Copy full SHA for a157b32
__tests__/shared/containers/__snapshots__/TopcoderHeader.jsx.snap
@@ -8,7 +8,11 @@ exports[`Matches shallow snapshot 1`] = `
8
openMenu={[Function]}
9
openMobileMenu={[Function]}
10
openSearch={[Function]}
11
- profile={Object {}}
+ profile={
12
+ Object {
13
+ "roles": undefined,
14
+ }
15
16
setCurrentNav={[Function]}
17
store={
18
Object {
src/shared/containers/TopcoderHeader.js
@@ -10,7 +10,10 @@ import { bindActionCreators } from 'redux';
export default connect(
state => ({
...state.topcoderHeader,
- profile: state.auth.profile,
+ profile: {
+ ...state.auth.profile,
+ roles: state.auth && state.auth.user ? state.auth.user.roles : undefined,
+ },
}),
dispatch => bindActionCreators(actions.topcoderHeader, dispatch),
19
)(TopcoderHeader);
0 commit comments