Skip to content

Commit

Permalink
Bugfix: remove and ignore assets only where is necessary (#594)
Browse files Browse the repository at this point in the history
* remove and ignore assets only where is necessary

* bump gaba
  • Loading branch information
estebanmino authored Apr 10, 2019
1 parent bd00818 commit 61275e2
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 39 deletions.
2 changes: 1 addition & 1 deletion app/components/UI/Collectibles/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ export default class Collectibles extends Component {

removeCollectible = () => {
const { AssetsController } = Engine.context;
AssetsController.removeCollectible(this.collectibleToRemove.address, this.collectibleToRemove.tokenId);
AssetsController.removeAndIgnoreCollectible(this.collectibleToRemove.address, this.collectibleToRemove.tokenId);
Alert.alert(strings('wallet.collectible_removed_title'), strings('wallet.collectible_removed_desc'));
};

Expand Down
2 changes: 1 addition & 1 deletion app/components/UI/Tokens/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ export default class Tokens extends PureComponent {

removeToken = () => {
const { AssetsController } = Engine.context;
AssetsController.removeToken(this.tokenToRemove.address);
AssetsController.removeAndIgnoreToken(this.tokenToRemove.address);
Alert.alert(strings('wallet.token_removed_title'), strings('wallet.token_removed_desc'));
};

Expand Down
53 changes: 17 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"ethjs-unit": "0.1.6",
"events": "3.0.0",
"fuse.js": "3.4.4",
"gaba": "1.0.0-beta.71",
"gaba": "1.0.0-beta.72",
"https-browserify": "0.0.1",
"jsc-android": "236355.1.1",
"multihashes": "0.4.14",
Expand Down

0 comments on commit 61275e2

Please sign in to comment.