removed expense and income vs outflow and inflow
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user