Skip to content
This repository has been archived by the owner on Apr 22, 2021. It is now read-only.

Commit

Permalink
fix: show futbin prices again
Browse files Browse the repository at this point in the history
breaking change in the EA web app resulted in Futbin prices not loading correctly.

fixes #267
  • Loading branch information
Mardaneus86 committed Apr 21, 2021
1 parent d41c2f7 commit e3b7bea
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/futbin/futbin-prices.js
Expand Up @@ -220,17 +220,17 @@ export class FutbinPrices extends BaseScript {
target: listController._view._playerPickViews[index].__root,
}));
} else if (listController._view._list &&
listController._view._list._listRows &&
listController._view._list._listRows.length > 0) {
listrows = listController._view._list._listRows; // for transfer market and club search
listController._view._list.listRows &&
listController._view._list.listRows.length > 0) {
listrows = listController._view._list.listRows; // for transfer market and club search
} else if (listController._view._sections &&
listController._view._sections.length > 0) { // for transfer list & trade pile
listController._view._sections.forEach((row) => {
if (row._listRows.length > 0) {
if (row.listRows.length > 0) {
if (listrows == null) {
listrows = row._listRows;
listrows = row.listRows;
} else {
listrows = listrows.concat(row._listRows);
listrows = listrows.concat(row.listRows);
}
}
});
Expand Down

0 comments on commit e3b7bea

Please sign in to comment.