mirror of
https://github.com/mattermost/mattermost.git
synced 2025-02-25 18:55:24 -06:00
Fix user profile never updating properly
This commit is contained in:
@@ -41,7 +41,7 @@ export default class UserProfile extends React.Component {
|
||||
UserStore.removeChangeListener(this.onChange);
|
||||
}
|
||||
onChange(userId) {
|
||||
if (userId === this.props.userId) {
|
||||
if (!userId || userId === this.props.userId) {
|
||||
var newState = this.getStateFromStores(this.props.userId);
|
||||
if (!Utils.areStatesEqual(newState, this.state)) {
|
||||
this.setState(newState);
|
||||
|
||||
Reference in New Issue
Block a user