fix: fix bug form country code init error (#1591)

This commit is contained in:
Yaodong Yu
2023-02-27 22:07:28 +08:00
committed by GitHub
parent 5caceb4ae2
commit afd3c4ed25
3 changed files with 10 additions and 16 deletions

View File

@ -311,7 +311,7 @@ class UserEditPage extends React.Component {
<PhoneNumberInput
style={{width: "30%"}}
// disabled={!Setting.isLocalAdminUser(this.props.account) ? true : disabled}
countryCode={this.state.user.countryCode}
value={this.state.user.countryCode}
onChange={(value) => {
this.updateUserField("countryCode", value);
}}