mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Disabled save button on add contact form if input fields are empty (#16233)
This commit is contained in:
parent
dd20281372
commit
1bdfb952bd
@ -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…
Reference in New Issue
Block a user