Skip to content

Commit

Permalink
🔀 Merge pull request #545
Browse files Browse the repository at this point in the history
🐛 possible fix negative profit when accepting invalid items
  • Loading branch information
idinium96 authored Apr 3, 2021
2 parents 48bd69c + 9939053 commit fc04e47
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/classes/MyHandler/MyHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1198,6 +1198,11 @@ export default class MyHandler extends Handler {
price.buy = new Currencies(price.buy);
price.sell = new Currencies(price.sell);

itemPrices[sku] = {
buy: price.buy,
sell: price.sell
};

if (
opt.offerReceived.invalidItems.givePrice &&
!isSkinsOrWarPaints &&
Expand Down

0 comments on commit fc04e47

Please sign in to comment.