Add static defaultProps

feature/default_network_editable
Thomas 5 years ago
parent d90b3feab8
commit 9d793015d3
  1. 6
      ui/app/pages/settings/contact-list-tab/edit-contact/edit-contact.component.js

@ -25,6 +25,12 @@ export default class EditContact extends PureComponent {
setAccountLabel: PropTypes.func, setAccountLabel: PropTypes.func,
} }
static defaultProps = {
name: '',
address: '',
memo: '',
}
state = { state = {
newName: this.props.name, newName: this.props.name,
newAddress: this.props.address, newAddress: this.props.address,

Loading…
Cancel
Save