Attributes without a value set are not rendered in the account console (#22968)

Closes #22961
This commit is contained in:
Pedro Igor 2023-09-08 11:43:19 -03:00 committed by GitHub
parent fec6237dca
commit 4d71138f70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -197,7 +197,7 @@ export class AccountPage extends React.Component<AccountPageProps, AccountPageSt
)}
</FormGroup>
)}
{!this.isUpdateEmailFeatureEnabled && fields.email != undefined && <FormGroup
{!this.isUpdateEmailFeatureEnabled && <FormGroup
label={Msg.localize('email')}
fieldId="email-address"
helperTextInvalid={this.state.errors.email}
@ -250,7 +250,7 @@ export class AccountPage extends React.Component<AccountPageProps, AccountPageSt
}
</InputGroup>
</FormGroup> }
{ fields.firstName != undefined && <FormGroup
<FormGroup
label={Msg.localize("firstName")}
fieldId="first-name"
helperTextInvalid={this.state.errors.firstName}
@ -275,8 +275,7 @@ export class AccountPage extends React.Component<AccountPageProps, AccountPageSt
}
></TextInput>
</FormGroup>
}
{fields.lastName != undefined && <FormGroup
<FormGroup
label={Msg.localize("lastName")}
fieldId="last-name"
helperTextInvalid={this.state.errors.lastName}
@ -301,7 +300,6 @@ export class AccountPage extends React.Component<AccountPageProps, AccountPageSt
}
></TextInput>
</FormGroup>
}
{features.isInternationalizationEnabled && (
<FormGroup
label={Msg.localize("selectLocale")}