From 54a0539e3f6b9c848a4d404850113710c8986c5f Mon Sep 17 00:00:00 2001 From: phBalance Date: Thu, 4 Jan 2024 16:14:19 -0700 Subject: [PATCH 1/2] fix(adjustment): correctly filter out invalid/empty messages --- module/utility/adjustment.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/utility/adjustment.js b/module/utility/adjustment.js index 457429b4..42150bdb 100644 --- a/module/utility/adjustment.js +++ b/module/utility/adjustment.js @@ -636,7 +636,7 @@ export async function renderAdjustmentChatCards(cardOrCards) { } // Filter out any invalid cards - cardOrCards.filter((card) => card); + cardOrCards = cardOrCards.filter((card) => card); if (cardOrCards.length === 0) return; From 452821db289a943a1763320cba9de7152fd882df Mon Sep 17 00:00:00 2001 From: phBalance Date: Thu, 4 Jan 2024 16:38:57 -0700 Subject: [PATCH 2/2] fix(adjustment): indicate adjustment power when full fade happens --- templates/chat/apply-adjustment-card.hbs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/chat/apply-adjustment-card.hbs b/templates/chat/apply-adjustment-card.hbs index 8abc25f8..9fea1089 100644 --- a/templates/chat/apply-adjustment-card.hbs +++ b/templates/chat/apply-adjustment-card.hbs @@ -41,7 +41,7 @@ {{#if isEffectFinished}}
- The effects of this {{../item.system.XMLID}} have completely faded! + The effects of this {{item.system.XMLID}} have completely faded!
{{/if}} \ No newline at end of file