Skip to content
This repository has been archived by the owner on Sep 2, 2023. It is now read-only.

Commit

Permalink
Merge pull request #2482 from darkdarkdragon/release-RT-3393
Browse files Browse the repository at this point in the history
[FIX] Send: fix currencies constraints (RT-3393)
  • Loading branch information
MatthewPhinney committed May 1, 2015
2 parents 27933c9 + b227b15 commit b68e369
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/js/tabs/send.controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,12 @@ SendTab.prototype.angular = function (module)
} else {
// The possible currencies are the intersection of all provided currency
// constraints.
currencies = _.intersection.apply(_, _.values(send.currency_choices_constraints));
currencies = _.values(send.currency_choices_constraints);
if (currencies.length == 1) {
currencies = currencies[0];
} else {
currencies = _.intersection.apply(_, currencies);
}
currencies = _.uniq(_.compact(currencies));

// create the display version of the currencies
Expand Down

0 comments on commit b68e369

Please sign in to comment.