removed expense and income vs outflow and inflow

This commit is contained in:
2026-05-18 07:58:35 +05:30
parent 58271584ce
commit fff304ad1e
13 changed files with 48 additions and 53 deletions

View File

@@ -7,7 +7,7 @@ export default function HistoryChart(props: HistoryChartProps) {
const {
tabs,
reportData,
mode,
flow,
comparison,
selectedPeriodId,
setSelectedPeriodId
@@ -19,8 +19,8 @@ export default function HistoryChart(props: HistoryChartProps) {
const activeDataKey = tabToKey(activeTab);
const currentData = React.useMemo(() => {
return buildChartData(reportData, activeDataKey, mode, comparison);
}, [reportData, activeDataKey, mode, comparison]);
return buildChartData(reportData, activeDataKey, flow, comparison);
}, [reportData, activeDataKey, flow, comparison]);
const maxAmount =
currentData.length > 0