From 6d84b0e371a0d4bc31d1e2c5731c6d772e73e165 Mon Sep 17 00:00:00 2001
From: Crazypkr1099 <nicholas.lacasse430@gmail.com>
Date: Tue, 20 Aug 2024 10:38:01 -0400
Subject: [PATCH] Fix wrong month on spending card (#3295)

* Create 2881.md

* Fix spending card reading wrong month

* Revert "Create 2881.md"

This reverts commit de26f690e85964d7083cc9d10227faa171ccf98f.

* Create 3295.md
---
 .../src/components/reports/reports/SpendingCard.tsx         | 5 ++---
 upcoming-release-notes/3295.md                              | 6 ++++++
 2 files changed, 8 insertions(+), 3 deletions(-)
 create mode 100644 upcoming-release-notes/3295.md

diff --git a/packages/desktop-client/src/components/reports/reports/SpendingCard.tsx b/packages/desktop-client/src/components/reports/reports/SpendingCard.tsx
index 0f1f01406..23c1e8a33 100644
--- a/packages/desktop-client/src/components/reports/reports/SpendingCard.tsx
+++ b/packages/desktop-client/src/components/reports/reports/SpendingCard.tsx
@@ -68,7 +68,6 @@ export function SpendingCard({ isEditing, onRemove }: SpendingCardProps) {
       </MissingReportCard>
     );
   }
-
   return (
     <ReportCard
       isEditing={isEditing}
@@ -103,8 +102,8 @@ export function SpendingCard({ isEditing, onRemove }: SpendingCardProps) {
               Monthly Spending
             </Block>
             <DateRange
-              start={monthUtils.currentMonth()}
-              end={monthUtils.currentMonth()}
+              start={monthUtils.addMonths(monthUtils.currentMonth(), 1)}
+              end={monthUtils.addMonths(monthUtils.currentMonth(), 1)}
             />
           </View>
           {data && showLastMonth && (
diff --git a/upcoming-release-notes/3295.md b/upcoming-release-notes/3295.md
new file mode 100644
index 000000000..6a69f4a57
--- /dev/null
+++ b/upcoming-release-notes/3295.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [Crazypkr1099]
+---
+
+Fix incorrect month on spendingcard
-- 
GitLab