Skip to content

Commit a157b32

Browse files
Merge pull request #2643 from gets0ul/issue-2639
Fix Issue #2639
2 parents e98fce4 + 260d339 commit a157b32

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

__tests__/shared/containers/__snapshots__/TopcoderHeader.jsx.snap

+5-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ exports[`Matches shallow snapshot 1`] = `
88
openMenu={[Function]}
99
openMobileMenu={[Function]}
1010
openSearch={[Function]}
11-
profile={Object {}}
11+
profile={
12+
Object {
13+
"roles": undefined,
14+
}
15+
}
1216
setCurrentNav={[Function]}
1317
store={
1418
Object {

src/shared/containers/TopcoderHeader.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ import { bindActionCreators } from 'redux';
1010
export default connect(
1111
state => ({
1212
...state.topcoderHeader,
13-
profile: state.auth.profile,
13+
profile: {
14+
...state.auth.profile,
15+
roles: state.auth && state.auth.user ? state.auth.user.roles : undefined,
16+
},
1417
}),
1518
dispatch => bindActionCreators(actions.topcoderHeader, dispatch),
1619
)(TopcoderHeader);

0 commit comments

Comments
 (0)