Skip to content

Commit

Permalink
Minor chat changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Haxxer committed Sep 6, 2022
1 parent 50395ef commit 2d0bb22
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 0 additions & 6 deletions src/API/chat-api.js
Original file line number Diff line number Diff line change
Expand Up @@ -420,12 +420,6 @@ export default class ChatAPI {
const targetActor = Utilities.getActor(targetUuid);

priceInformation.item = priceInformation.buyerReceive[0];
priceInformation.finalPrices = priceInformation.finalPrices
.filter(price => price.quantity)
.map(price => {
price.text = price.baseCost + " " + price.name;
return price;
});

const now = (+new Date());

Expand Down
4 changes: 1 addition & 3 deletions templates/chat/merchant-traded.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@
<img src="{{entry.item.img}}" title="{{entry.item.name}}" height="16"/>
<label>{{entry.item.name}} <small>(x{{entry.item.quantity}})</small></label>
<small style="flex: 0 1 auto;">
{{#each entry.finalPrices as |price id|}}
<span>{{price.text}}</span>
{{/each}}
{{entry.basePriceString}}
</small>
</li>
{{/each}}
Expand Down

0 comments on commit 2d0bb22

Please sign in to comment.