A local-first personal finance app
fix rerender loop in calendar card (#5573)
Matt Fiddaman989d332e1b0a
diff --git a/packages/desktop-client/src/components/reports/reports/CalendarCard.tsx b/packages/desktop-client/src/components/reports/reports/CalendarCard.tsxindex 6350a8d8bb..e29ad7527c 100644--- a/packages/desktop-client/src/components/reports/reports/CalendarCard.tsx+++ b/packages/desktop-client/src/components/reports/reports/CalendarCard.tsx@@ -376,6 +376,7 @@ function CalendarCardInner({containerWidth > suitableFormat.width) {setMonthNameFormats(prev => {+ if (prev[index] === suitableFormat.format) return prev;const newArray = [...prev];newArray[index] = suitableFormat.format;return newArray;diff --git a/upcoming-release-notes/5573.md b/upcoming-release-notes/5573.mdnew file mode 100644index 0000000000..2e84d81d03--- /dev/null+++ b/upcoming-release-notes/5573.md@@ -0,0 +1,6 @@+---+category: Bugfix+authors: [matt-fidd]+---++Fix rendering loop in calendar report card