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:
Jaco Greeff
2016-12-08 15:54:23 +01:00
committed by GitHub
parent d38da1f3b4
commit a1fb1240a7
11 changed files with 36 additions and 15 deletions

View File

@@ -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) }