Skip to content

Commit

Permalink
Merge pull request #101 from hunterjm/develop
Browse files Browse the repository at this point in the history
fix lifetime profit
  • Loading branch information
hunterjm authored Feb 7, 2017
2 parents f03f627 + f8166f0 commit 5380093
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/components/bid/Overview.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export class Overview extends Component {
.reduce((p, c) => p.concat(Object.values(c)), [])
.filter(trade => trade.bought > 0 && trade.sold > 0);
const lifetimeProfit = lifetimeTrades
.reduce((p, c) => p + (c.sold - c.bought), 0);
.reduce((p, c) => p + ((c.sold * 0.95) - c.bought), 0);

return (
<div className="details bidding-screen">
Expand Down
2 changes: 1 addition & 1 deletion app/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fifa-autobuyer",
"productName": "FIFA Autobuyer",
"version": "0.3.1",
"version": "0.3.2",
"description": "Autobuyer for FIFA 17 Ultimate Team",
"main": "./main.js",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fifa-autobuyer",
"productName": "FIFA Autobuyer",
"version": "0.3.1",
"version": "0.3.2",
"description": "Autobuyer for FIFA 17 Ultimate Team",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit 5380093

Please sign in to comment.