Skip to content

Commit

Permalink
Fixed frontend sorting issue
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisleekr committed Feb 7, 2021
1 parent 506580e commit 57e61e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/js/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,10 @@ class App extends React.Component {
self.setState({
symbols: _.sortBy(response.stats.symbols, s => {
if (s.sell.lastBuyPrice > 0) {
return (s.sell.difference - 100) * -10;
return (s.sell.difference + 100) * -10;
}
if (s.openOrder.difference) {
return (s.openOrder.difference - 100) * -10;
return (s.openOrder.difference + 100) * -10;
}
return s.buy.difference;
}),
Expand Down

0 comments on commit 57e61e3

Please sign in to comment.