Disabled save button on add contact form if input fields are empty (#16233)

feature/default_network_editable
Adnan Sahovic 2 years ago committed by GitHub
parent dd20281372
commit 1bdfb952bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      ui/pages/settings/contact-list-tab/add-contact/add-contact.component.js

@ -143,7 +143,7 @@ export default class AddContact extends PureComponent {
</div>
<PageContainerFooter
cancelText={this.context.t('cancel')}
disabled={Boolean(this.state.error)}
disabled={Boolean(this.state.error || !this.state.ethAddress)}
onSubmit={async () => {
await addToAddressBook(
domainResolution || this.state.ethAddress,

Loading…
Cancel
Save