Skip to content

Commit

Permalink
Fixed minor issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Sep 4, 2022
1 parent 7b40cc1 commit e3ec2ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helpers/pile-utilities.js
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ export function getItemPrices(item, {
itemFlagData = itemFlagData || getItemFlagData(item);

const overallCost = Number(getProperty(item.toObject(), game.itempiles.ITEM_PRICE_ATTRIBUTE));
const hasOtherPrices = itemFlagData.prices.filter(priceGroup => priceGroup.prices.length).length > 0;
const hasOtherPrices = itemFlagData.prices.filter(priceGroup => priceGroup.length).length > 0;

if (itemFlagData?.free || (!itemFlagData.disableNormalCost && overallCost === 0 && !hasOtherPrices)) {
priceData.push({
Expand Down

0 comments on commit e3ec2ed

Please sign in to comment.