Skip to content

armgit / umami

Public Imported from GitHub
0

Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.

Fix calendar.

Brian Caod9ba4097eef2
diff --git a/components/common/Calendar.js b/components/common/Calendar.js
index b6c5cd0b1..e9e225730 100644
--- a/components/common/Calendar.js
+++ b/components/common/Calendar.js
@@ -123,7 +123,8 @@ const DaySelector = ({ date, minDate, maxDate, locale, onSelect }) => {
}
const days = [];
- for (let i = 0; i < 35; i++) {
+ const weekCount = addDays(startDay, 36).getMonth() === month ? 42 : 35;
+ for (let i = 0; i < weekCount; i++) {
days.push(addDays(startDay, i));
}