mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
Fixed error message always appearing for group rename.
This commit is contained in:
parent
8c0bec7a97
commit
e8d06e86b5
|
@ -85,9 +85,17 @@ class UpdateGroupNameDialogInner extends React.Component<Props, State> {
|
|||
onClose={() => this.closeDialog()}
|
||||
theme={this.props.theme}
|
||||
>
|
||||
|
||||
{ this.state.errorDisplayed ?
|
||||
<>
|
||||
<div className="spacer-md" />
|
||||
<p className={errorMessageClasses}>{errorMsg}</p>
|
||||
<div className="spacer-md" />
|
||||
</>
|
||||
:
|
||||
null
|
||||
}
|
||||
|
||||
{this.renderAvatar()}
|
||||
<div className="spacer-md" />
|
||||
|
||||
|
@ -95,7 +103,7 @@ class UpdateGroupNameDialogInner extends React.Component<Props, State> {
|
|||
type="text"
|
||||
className="profile-name-input"
|
||||
value={this.state.groupName}
|
||||
placeholder={this.props.i18n('groupNamePlaceholder')}
|
||||
placeholder={window.i18n('groupNamePlaceholder')}
|
||||
onChange={this.onGroupNameChanged}
|
||||
tabIndex={0}
|
||||
required={true}
|
||||
|
|
Loading…
Reference in a new issue