Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Dec 19, 2023
1 parent d789831 commit 8adbfe5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,9 +385,9 @@ export function getLogData(auctioneer, { auctions = [], bids = [], buyouts = []

for (const claimedAuction of claimedAuctions) {
if (!claimedAuction.won) {
recipientCurrencies = recipientCurrencies
recipientCurrencies = recipientCurrencies && claimedAuction.depositPrice
? game.itempiles.API.calculateCurrencies(recipientCurrencies, claimedAuction.depositPrice, false)
: claimedAuction.depositPrice;
: claimedAuction.depositPrice || recipientCurrencies;
} else if (flags.auctionFee) {
const auctionFee = Math.max(0, flags.auctionFee ?? 0);
const fee = game.itempiles.API.calculateCurrencies(price, auctionFee / 100);
Expand Down

0 comments on commit 8adbfe5

Please sign in to comment.