Skip to content

Commit

Permalink
Update minBinCalc.js
Browse files Browse the repository at this point in the history
  • Loading branch information
cnbrkc authored Oct 16, 2022
1 parent 31c4b9c commit 474dbd2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/services/minBinCalc.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export const calculatePlayerMinBin = async (player) => {
searchModel.defaultSearchCriteria.category = searchCriteria.category;

let allPrices = [];
let itemsToConsider = 5;
let itemsToConsider = 1;
let isMinFound = false;
let currentCount = 0;
while (!isMinFound) {
if (++currentCount === 10) {
if (++currentCount === 1) {
isMinFound = true;
} else {
sendPinEvents("Transfer Market Search");
Expand All @@ -32,7 +32,7 @@ export const calculatePlayerMinBin = async (player) => {
...items.map((i) => i._auction.buyNowPrice)
);

if (items.length < 5) {
if (items.length < 1) {
isMinFound = true;
}

Expand Down

0 comments on commit 474dbd2

Please sign in to comment.