From d806014a5c699be8b3cd06f42f69b85637b094ba Mon Sep 17 00:00:00 2001 From: tomsmith8 Date: Mon, 4 May 2026 08:36:42 +0000 Subject: [PATCH] Generated with Hive: Filter zero-amount transactions from BudgetModal history and update mock data --- src/components/modals/budget-modal.tsx | 2 +- src/lib/mock-data.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/modals/budget-modal.tsx b/src/components/modals/budget-modal.tsx index 35d3692..f9a7fa2 100644 --- a/src/components/modals/budget-modal.tsx +++ b/src/components/modals/budget-modal.tsx @@ -617,7 +617,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 da3b689..25d52c9 100644 --- a/src/lib/mock-data.ts +++ b/src/lib/mock-data.ts @@ -261,6 +261,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" },