rename local const

This commit is contained in:
Florian Scholdei
2019-06-12 16:35:08 +02:00
parent 5f435a524e
commit 2727679f6e
2 changed files with 4 additions and 4 deletions

View File

@@ -140,7 +140,7 @@ class UserForm extends React.Component<Props, State> {
subtitle = <Subtitle subtitle={t("userForm.subtitle")} />;
}
const iconType =
const label =
user && user.active ? (
<>
{t("user.active")} <Icon title={t("user.active")} name="user" />
@@ -183,7 +183,7 @@ class UserForm extends React.Component<Props, State> {
<div className="column">
{passwordChangeField}
<Checkbox
label={iconType}
label={label}
onChange={this.handleActiveChange}
checked={user ? user.active : false}
helpText={t("help.activeHelpText")}