Skip to content

Commit d7c49e7

Browse files
committed
Add roles to the profile in header
1 parent e98fce4 commit d7c49e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/shared/containers/TopcoderHeader.js

Lines changed: 4 additions & 1 deletion
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)