This commit is contained in:
Christoph Wolfes
2018-07-25 14:35:37 +02:00
5 changed files with 99 additions and 82 deletions

View File

@@ -87,8 +87,8 @@ class SingleUser extends React.Component<Props> {
const mapStateToProps = (state, ownProps) => {
const name = ownProps.match.params.name;
let userEntry;
if (state.users && state.users.usersByNames) {
userEntry = state.users.usersByNames[name];
if (state.users && state.users.byNames) {
userEntry = state.users.byNames[name];
}
return {