diff --git a/src/app/budget/page.tsx b/src/app/budget/page.tsx index bc7871a..699d70d 100644 --- a/src/app/budget/page.tsx +++ b/src/app/budget/page.tsx @@ -1,6 +1,6 @@ "use client"; -import { useState } from "react"; +import { useState, Fragment } from "react"; import { ComposedChart, BarChart, @@ -551,9 +551,8 @@ export default function AnalyticsPage() { {categoryRows.map(({ category, spent, txCount }) => { const isExpanded = expandedCategory === category; return ( - <> + {isExpanded && ( )} - + ); })}