Skip to content

Commit

Permalink
Made only assets with checked names searchable in DEX
Browse files Browse the repository at this point in the history
  • Loading branch information
xenohunter committed Nov 9, 2017
1 parent 8abcec4 commit b576cd1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/js/dex/asset.picker.component.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,7 @@
ctrl.autocomplete.assets = ctrl.assets.map(function (asset) {
return asset.currency;
}).filter(function (asset) {
return asset !== ctrl.hiddenAsset;
}).sort(function (a, b) {
// Verified assets go first.
return +b.verified - +a.verified;
return asset.verified && (asset !== ctrl.hiddenAsset);
});
}
};
Expand Down

0 comments on commit b576cd1

Please sign in to comment.