Skip to content

Commit

Permalink
Merge pull request #5230 from reactioncommerce/alphabetical_currencies
Browse files Browse the repository at this point in the history
Alphabetical currencies
  • Loading branch information
kieckhafer authored Jun 21, 2019
2 parents 87e08e3 + 5fbc324 commit 86a0757
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ class LocalizationSettings extends Component {
}

renderCurrencies() {
return this.props.currencies.map((currency, key) => (
return this.props.currencies.sort((currencyA, currencyB) => currencyA.name.localeCompare(currencyB.name)).map((currency, key) => (
<Components.ListItem
actionType={"switch"}
key={key}
Expand Down

0 comments on commit 86a0757

Please sign in to comment.