diff --git a/packages/desktop-client/src/components/reports/reports/SpendingCard.tsx b/packages/desktop-client/src/components/reports/reports/SpendingCard.tsx index 0f1f01406523bbb6a3f752127957fdb54258d4f7..23c1e8a33fb37b28047f83fed8157c9bcb4728c3 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 0000000000000000000000000000000000000000..6a69f4a575b77480ed309e1fbb52db8f31ec5751 --- /dev/null +++ b/upcoming-release-notes/3295.md @@ -0,0 +1,6 @@ +--- +category: Bugfix +authors: [Crazypkr1099] +--- + +Fix incorrect month on spendingcard