Skip to content

Commit

Permalink
Merge pull request #945 from the-hideout/trader-buyback-enhance
Browse files Browse the repository at this point in the history
Better filtering of buyback items
  • Loading branch information
Razzmatazzz authored Jun 6, 2024
2 parents b6f3964 + 7baee74 commit 5fa3b65
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/small-item-table/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ function SmallItemTable(props) {
return false;
if (!showAllSources && settings.useTarkovTracker && buyFor.vendor.taskUnlock && !settings.completedQuests.includes(buyFor.vendor.taskUnlock.id))
return false;
if (buyFor.vendor.normalizedName === 'flea-market' && traderValue && traderBuyback && itemData.types.includes('preset'))
if (buyFor.vendor.normalizedName === 'flea-market' && traderValue && traderBuyback && (itemData.types.includes('preset') || itemData.lastOfferCount < 2))
return false;
return true;
}),
Expand Down
1 change: 1 addition & 0 deletions src/features/items/do-fetch-items.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ class ItemsQuery extends APIQuery {
low24hPrice
high24hPrice
lastLowPrice
lastOfferCount
gridImageLink
iconLink
baseImageLink
Expand Down

0 comments on commit 5fa3b65

Please sign in to comment.