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.

Even out calendar.

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