Skip to content

Commit

Permalink
Merge pull request #248 from xenohunter/master
Browse files Browse the repository at this point in the history
Added clean-up of the DEX data on changes from the picker component
  • Loading branch information
Phil Filippak authored May 30, 2017
2 parents 8b80514 + bf71a38 commit 79ed3c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/dex/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@
$scope.$on('asset-picked', function (e, newAsset, type) {
// Define in which widget the asset was changed
ctrl.pair[type] = newAsset;
emptyDataFields();
refreshAll();
});

Expand Down Expand Up @@ -152,6 +153,9 @@

fillBuyForm();
fillSellForm();

// That forces children components to react on the pair change
ctrl.pair = _.clone(ctrl.pair);
}

function refreshAll() {
Expand Down

0 comments on commit 79ed3c6

Please sign in to comment.