Fix toast and data display issues

- Fixes an issue where toast notifications would not automatically dismiss.
- Addresses a problem where expense data was not displaying correctly on the transaction and analytics screens.
This commit is contained in:
gpt-engineer-app[bot]
2025-03-16 08:34:58 +00:00
parent 1281156f05
commit fe669b0cfd
6 changed files with 68 additions and 19 deletions

View File

@@ -41,7 +41,7 @@ const MonthlyComparisonChart: React.FC<MonthlyComparisonChartProps> = ({
return (
<div className="neuro-card h-72 w-full">
{!isEmpty && monthlyData.length > 0 ? (
{!isEmpty && monthlyData.length > 0 && monthlyData.some(item => item.budget > 0 || item.expense > 0) ? (
<ResponsiveContainer width="100%" height="100%">
<BarChart data={monthlyData} margin={{
top: 20,