From 2d0bb2252851492c362d1009c29ddc353b8513c3 Mon Sep 17 00:00:00 2001 From: Haxxer Date: Tue, 6 Sep 2022 23:08:04 +0100 Subject: [PATCH] Minor chat changes --- src/API/chat-api.js | 6 ------ templates/chat/merchant-traded.html | 4 +--- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/src/API/chat-api.js b/src/API/chat-api.js index 72d9dfac..0bfccc97 100644 --- a/src/API/chat-api.js +++ b/src/API/chat-api.js @@ -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()); diff --git a/templates/chat/merchant-traded.html b/templates/chat/merchant-traded.html index 1b184321..4b51726f 100644 --- a/templates/chat/merchant-traded.html +++ b/templates/chat/merchant-traded.html @@ -14,9 +14,7 @@ - {{#each entry.finalPrices as |price id|}} - {{price.text}} - {{/each}} + {{entry.basePriceString}} {{/each}}