diff options
Diffstat (limited to 'webapp/components/user_profile.jsx')
-rw-r--r-- | webapp/components/user_profile.jsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/webapp/components/user_profile.jsx b/webapp/components/user_profile.jsx index 673422d3f..e68ff7eab 100644 --- a/webapp/components/user_profile.jsx +++ b/webapp/components/user_profile.jsx @@ -39,6 +39,10 @@ export default class UserProfile extends React.Component { return true; } + if (nextProps.displayNameType !== this.props.displayNameType) { + return true; + } + return false; } render() { @@ -138,5 +142,6 @@ UserProfile.propTypes = { user: React.PropTypes.object, overwriteName: React.PropTypes.string, overwriteImage: React.PropTypes.string, - disablePopover: React.PropTypes.bool + disablePopover: React.PropTypes.bool, + displayNameType: React.PropTypes.string }; |