diff --git a/src/components/profile/Profile.jsx b/src/components/profile/Profile.jsx index 04cf88c..38dd408 100644 --- a/src/components/profile/Profile.jsx +++ b/src/components/profile/Profile.jsx @@ -51,7 +51,9 @@ export default class Profile extends Component { } value={user.username} - warningMessage={} + warningMessage={user.hasMojangUsernameCollision ? ( + + ) : ''} /> { @@ -60,5 +61,6 @@ export const userShape = PropTypes.shape({ avatar: PropTypes.string, isGuest: PropTypes.bool.isRequired, isActive: PropTypes.bool.isRequired, - passwordChangedAt: PropTypes.number + passwordChangedAt: PropTypes.number, + hasMojangUsernameCollision: PropTypes.bool, });