diff --git a/src/components/modals/budget-modal.tsx b/src/components/modals/budget-modal.tsx index 2ec4d14..fff0378 100644 --- a/src/components/modals/budget-modal.tsx +++ b/src/components/modals/budget-modal.tsx @@ -662,7 +662,7 @@ export function BudgetModal() { ) : (
{transactions - .filter(tx => tx.action !== 'refund' && tx.action !== 'boost_refund') + .filter(tx => tx.action !== 'refund' && tx.action !== 'boost_refund' && tx.amount > 0) .map((tx, i) => (
diff --git a/src/lib/mock-data.ts b/src/lib/mock-data.ts index a0f5ef8..1eb09b1 100644 --- a/src/lib/mock-data.ts +++ b/src/lib/mock-data.ts @@ -339,6 +339,7 @@ export const MOCK_TRANSACTIONS = { { action: "top_up", type: "credit" as const, amount: 500, created_at: "2026-04-15T10:00:00Z" }, { action: "search", type: "debit" as const, amount: 10, created_at: "2026-04-15T10:05:00Z" }, { action: "search", type: "debit" as const, amount: 10, created_at: "2026-04-15T10:06:30Z" }, + { action: "purchase", type: "debit" as const, amount: 0, created_at: "2026-04-15T10:07:00Z" }, { action: "purchase", type: "debit" as const, amount: 10, created_at: "2026-04-15T10:08:00Z" }, { action: "boost", type: "debit" as const, amount: 10, created_at: "2026-04-15T10:10:00Z", refunded: true }, { action: "add_content", type: "debit" as const, amount: 10, created_at: "2026-04-15T10:15:00Z" },