No empty username, no same username

This commit is contained in:
okbel
2018-04-26 17:00:08 -03:00
parent ba7de6bf81
commit ab02b1b6ca
2 changed files with 3 additions and 3 deletions
@@ -120,7 +120,6 @@ class ChangeUsername extends React.Component {
) : null}
</div>
)}
{editing ? (
<div className={styles.actions}>
<Button
@@ -128,8 +127,8 @@ class ChangeUsername extends React.Component {
icon="save"
onClick={this.onSave}
disabled={
!this.state.formData.newUsername &&
this.state.formData.newUsername !== username
!this.state.formData.newUsername ||
this.state.formData.newUsername === username
}
>
{t('talk-plugin-auth.change_username.save')}
@@ -23,6 +23,7 @@
display: inline-block;
width: 230px;
display: flex;
box-sizing: border-box;
> .detailIcon {
font-size: 1.2em;