Skip to content

A local-first personal finance app

Fixed graphical bug in report (#4917)

Alec Bakholdin6c278a72a577
diff --git a/packages/desktop-client/src/components/reports/reports/Spending.tsx b/packages/desktop-client/src/components/reports/reports/Spending.tsx
index afc5fa4993..96b8f8eb72 100644
--- a/packages/desktop-client/src/components/reports/reports/Spending.tsx
+++ b/packages/desktop-client/src/components/reports/reports/Spending.tsx
@@ -517,17 +517,17 @@ function SpendingInternal({ widget }: SpendingInternalProps) {
style={{ marginBottom: 5, minWidth: 210 }}
left={
<Block>
- {compare === monthUtils.currentMonth()
+ {compareTo === monthUtils.currentMonth()
? t('Spent {{monthYearFormatted}} MTD:', {
monthYearFormatted: monthUtils.format(
- compare,
+ compareTo,
'MMM, yyyy',
locale,
),
})
: t('Spent {{monthYearFormatted}}:', {
monthYearFormatted: monthUtils.format(
- compare,
+ compareTo,
'MMM, yyyy',
locale,
),
diff --git a/upcoming-release-notes/4917.md b/upcoming-release-notes/4917.md
new file mode 100644
index 0000000000..6f1d54d9be
--- /dev/null
+++ b/upcoming-release-notes/4917.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [alecbakholdin]
+---
+
+Fixed graphical error in display on month in top right corner of monthly spending