Fix SpendingCard crash (#5541)

This commit is contained in:
milanalexandre
2025-08-12 15:51:10 +02:00
committed by GitHub
parent d1519993d6
commit 31c6362307
2 changed files with 10 additions and 2 deletions

View File

@@ -65,8 +65,10 @@ export function SpendingCard({
: monthUtils.getDay(monthUtils.currentDay()) - 1; : monthUtils.getDay(monthUtils.currentDay()) - 1;
const difference = const difference =
data && data &&
data.intervalData[todayDay][selection] - Math.round(
data.intervalData[todayDay].compare; data.intervalData[todayDay][selection] -
data.intervalData[todayDay].compare,
);
return ( return (
<ReportCard <ReportCard

View File

@@ -0,0 +1,6 @@
---
category: Bugfix
authors: [milanalexandre]
---
Fix SpendingCard crash