Skip to content

Commit

Permalink
fix(adjustment): correctly filter out invalid/empty messages
Browse files Browse the repository at this point in the history
  • Loading branch information
phBalance authored and phBalance committed Jan 4, 2024
1 parent 9ff7630 commit 54a0539
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/utility/adjustment.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 54a0539

Please sign in to comment.