Stop trying to get the users config when there is no user (#411)

This commit is contained in:
Mike Stone 2016-11-02 21:32:05 -04:00 committed by Mike Arpaia
parent 97de2bc5aa
commit 9c476a39ff

View file

@ -42,7 +42,7 @@ export class App extends Component {
componentWillReceiveProps (nextProps) {
const { dispatch, user } = nextProps;
if (this.props.user !== user) {
if (user && this.props.user !== user) {
dispatch(getConfig());
}
}