Properly delete addresses/contracts in addressbook (#3739)
* Remove previously market addresses at startup * Remove meta.deleted checks * Remove artifact from code move
This commit is contained in:
@@ -53,7 +53,6 @@ class InputAddress extends Component {
|
||||
const { small, allowCopy, hideUnderline, onSubmit, accountsInfo, tokens } = this.props;
|
||||
|
||||
const account = accountsInfo[value] || tokens[value];
|
||||
const hasAccount = account && !(account.meta && account.meta.deleted);
|
||||
|
||||
const icon = this.renderIcon();
|
||||
|
||||
@@ -74,7 +73,7 @@ class InputAddress extends Component {
|
||||
label={ label }
|
||||
hint={ hint }
|
||||
error={ error }
|
||||
value={ text && hasAccount ? account.name : value }
|
||||
value={ text && account ? account.name : value }
|
||||
onChange={ this.handleInputChange }
|
||||
onSubmit={ onSubmit }
|
||||
allowCopy={ allowCopy && (disabled ? value : false) }
|
||||
|
||||
Reference in New Issue
Block a user