diff --git a/app/components/Account/RecentTransactions.jsx b/app/components/Account/RecentTransactions.jsx index c6c970e80a..3bcab493b3 100644 --- a/app/components/Account/RecentTransactions.jsx +++ b/app/components/Account/RecentTransactions.jsx @@ -213,7 +213,7 @@ class RecentTransactions extends React.Component { }) : []; display_history.push( - + {historyCount > 0 ? diff --git a/app/components/Layout/MobileMenu.jsx b/app/components/Layout/MobileMenu.jsx index cd021c853e..5c78a86ed1 100644 --- a/app/components/Layout/MobileMenu.jsx +++ b/app/components/Layout/MobileMenu.jsx @@ -36,7 +36,11 @@ class MobileMenu extends React.Component { let accounts = null; if(linkedAccounts.size > 1) { - accounts = linkedAccounts.map( a => { + accounts = linkedAccounts.sort((a, b) => { + if (a > b) return 1; + if (a < b) return -1; + return 0; + }).map( a => { return
  • {a}
  • ; }); } else if (linkedAccounts.size === 1) { @@ -44,8 +48,7 @@ class MobileMenu extends React.Component { } let linkToAccountOrDashboard; - if (linkedAccounts.size > 1) linkToAccountOrDashboard = ; - else if (linkedAccounts.size === 1) linkToAccountOrDashboard = ; + if (linkedAccounts.size > 0) linkToAccountOrDashboard = ; else linkToAccountOrDashboard = Create Account; let tradeLink = this.props.lastMarket ?