fix(shared): exclude payments from balance when tag filter is active

This commit is contained in:
2026-04-13 05:41:00 +10:00
parent 1b561af9e9
commit 07b8c1ef16
2 changed files with 21 additions and 12 deletions
+3
View File
@@ -299,6 +299,9 @@ export default function SharedPage() {
{addingParticipant && <AddParticipantForm onDone={() => setAddingParticipant(false)} />}
{/* Balance cards */}
{realTagIds.length === 0 && tagIds.includes("untagged") ? null : realTagIds.length > 0 && (
<p className="text-xs text-zinc-500 mb-2">Showing split totals for selected tag payments excluded (payments settle overall debt, not per-tag)</p>
)}
<div className="grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-4">
{balLoading ? (
<p className="text-zinc-500 text-sm col-span-3">Loading balances...</p>