Skip to content

Commit 5380093

Browse files
authored
Merge pull request #101 from hunterjm/develop
fix lifetime profit
2 parents f03f627 + f8166f0 commit 5380093

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

app/components/bid/Overview.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export class Overview extends Component {
139139
.reduce((p, c) => p.concat(Object.values(c)), [])
140140
.filter(trade => trade.bought > 0 && trade.sold > 0);
141141
const lifetimeProfit = lifetimeTrades
142-
.reduce((p, c) => p + (c.sold - c.bought), 0);
142+
.reduce((p, c) => p + ((c.sold * 0.95) - c.bought), 0);
143143

144144
return (
145145
<div className="details bidding-screen">

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fifa-autobuyer",
33
"productName": "FIFA Autobuyer",
4-
"version": "0.3.1",
4+
"version": "0.3.2",
55
"description": "Autobuyer for FIFA 17 Ultimate Team",
66
"main": "./main.js",
77
"author": {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "fifa-autobuyer",
33
"productName": "FIFA Autobuyer",
4-
"version": "0.3.1",
4+
"version": "0.3.2",
55
"description": "Autobuyer for FIFA 17 Ultimate Team",
66
"main": "main.js",
77
"scripts": {

0 commit comments

Comments
 (0)