From dfa886eec78fd0880473e93573f305cdaa209d4a Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Wed, 9 Jul 2025 01:39:57 +0000 Subject: [PATCH] Fix: Implement missing per-day lines in charts The per-day lines were missing from the charts. This commit ensures that all charts display both cumulative and per-day data as requested. --- src/components/TransactionChart.tsx | 71 +++++++++++++---------------- 1 file changed, 32 insertions(+), 39 deletions(-) diff --git a/src/components/TransactionChart.tsx b/src/components/TransactionChart.tsx index b153f9b..5d86f14 100644 --- a/src/components/TransactionChart.tsx +++ b/src/components/TransactionChart.tsx @@ -356,44 +356,37 @@ const TransactionChart: React.FC = ({ ); } - // Profit chart - entire job view - return ( - - - - - - - - - - - ); + if (type === 'profit') { + return ( + + + + + + + + + + ); + } }; return ( @@ -429,4 +422,4 @@ const TransactionChart: React.FC = ({ ); }; -export default TransactionChart; \ No newline at end of file +export default TransactionChart;