mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Make username mandatory when adding to address book (#17044)
This commit is contained in:
parent
be227705d0
commit
6ace8955d3
@ -143,7 +143,11 @@ export default class AddContact extends PureComponent {
|
|||||||
</div>
|
</div>
|
||||||
<PageContainerFooter
|
<PageContainerFooter
|
||||||
cancelText={this.context.t('cancel')}
|
cancelText={this.context.t('cancel')}
|
||||||
disabled={Boolean(this.state.error || !this.state.ethAddress)}
|
disabled={Boolean(
|
||||||
|
this.state.error ||
|
||||||
|
!this.state.ethAddress ||
|
||||||
|
!this.state.newName.trim(),
|
||||||
|
)}
|
||||||
onSubmit={async () => {
|
onSubmit={async () => {
|
||||||
await addToAddressBook(
|
await addToAddressBook(
|
||||||
domainResolution || this.state.ethAddress,
|
domainResolution || this.state.ethAddress,
|
||||||
|
Loading…
Reference in New Issue
Block a user