Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
svk31 committed Oct 14, 2017
1 parent 1e3e664 commit 8f734ed
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/components/Account/RecentTransactions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ class RecentTransactions extends React.Component {
}) : [<tr key="no_recent"><td colSpan={compactView ? "2" : "3"}><Translate content="operation.no_recent" /></td></tr>];
display_history.push(
<tr className="total-value" key="total_value">
<td>
<td className="column-hide-tiny">
</td>
<td style={alignRight}>
{historyCount > 0 ?
Expand Down
9 changes: 6 additions & 3 deletions app/components/Layout/MobileMenu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,19 @@ 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 <li key={a} onClick={this.onClick}><Link to={`/account/${a}/overview`}>{a}</Link></li>;
});
} else if (linkedAccounts.size === 1) {
accounts = <li key="account" onClick={this.onClick}><Link to={`/account/${linkedAccounts.first()}/overview`}><Translate content="header.account" /></Link></li>;
}

let linkToAccountOrDashboard;
if (linkedAccounts.size > 1) linkToAccountOrDashboard = <a onClick={this._onNavigate.bind(this, "/dashboard")}><Translate content="header.dashboard" /></a>;
else if (linkedAccounts.size === 1) linkToAccountOrDashboard = <a onClick={this._onNavigate.bind(this, `/account/${linkedAccounts.first()}/overview`)}><Translate content="header.account" /></a>;
if (linkedAccounts.size > 0) linkToAccountOrDashboard = <a onClick={this._onNavigate.bind(this, "/dashboard")}><Translate content="header.dashboard" /></a>;
else linkToAccountOrDashboard = <Link to="/create-account">Create Account</Link>;

let tradeLink = this.props.lastMarket ?
Expand Down

0 comments on commit 8f734ed

Please sign in to comment.