Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Mar 13, 2024
1 parent 5b81310 commit 332103a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/features/AccountOverview/OverviewChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const OverviewChart = () => {
settings.currencyRates.usd,
account.currency,
settings.preferredDisplayCurrency,
);
);
return { x: date, y };
});
},
Expand Down Expand Up @@ -105,15 +105,15 @@ const OverviewChart = () => {
data={d.data}
{...accessors}
/>
))
))
: data.map(d => (
<AnimatedLineSeries
key={d.account.id}
dataKey={d.account.name}
data={d.data}
{...accessors}
/>
))}
))}

<Tooltip
snapTooltipToDatumX
Expand Down
2 changes: 1 addition & 1 deletion src/features/Budget/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export function createReducer(
? {
...x,
...action.item,
}
}
: x,
),
},
Expand Down
6 changes: 3 additions & 3 deletions src/features/Stocks/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ function reducer(state: StockState, action: StockAction): StockState {
: {
...stock,
lots: stock.lots.concat(lot),
},
},
),
};
}
Expand All @@ -145,7 +145,7 @@ function reducer(state: StockState, action: StockAction): StockState {
: {
...stock,
lots: stock.lots.filter(x => x.id !== action.id),
},
},
),
};

Expand All @@ -160,7 +160,7 @@ function reducer(state: StockState, action: StockAction): StockState {
lots: stock.lots
.filter(x => x.id !== action.lot.id)
.concat(action.lot),
},
},
),
};

Expand Down

0 comments on commit 332103a

Please sign in to comment.