Skip to content

Commit

Permalink
Merge pull request #200 from hunterjm/develop
Browse files Browse the repository at this point in the history
0.4.6
  • Loading branch information
hunterjm authored Aug 3, 2017
2 parents 3b0eace + af80afe commit e9bf85d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion app/actions/player.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,12 @@ export function findPrice(id, buy = 0, num = 0) {
}
let lowest = buy;
let total = num;
let prices = [];
const response = await api.search(filter);
const prices = response.auctionInfo.map(i => i.buyNowPrice);
const pr = response.auctionInfo;
if (pr) {
prices = pr.map(i => i.buyNowPrice);
}
if (prices.length) {
lowest = Math.min(...prices);
prices.filter(i => i.buyNowPrice === lowest);
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.4.5",
"version": "0.4.6",
"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.4.5",
"version": "0.4.6",
"description": "Autobuyer for FIFA 17 Ultimate Team",
"main": "main.js",
"scripts": {
Expand Down

0 comments on commit e9bf85d

Please sign in to comment.