diff --git a/apps/app/components/core/calendar-view/calendar.tsx b/apps/app/components/core/calendar-view/calendar.tsx
index c61236edb..a8fed31cc 100644
--- a/apps/app/components/core/calendar-view/calendar.tsx
+++ b/apps/app/components/core/calendar-view/calendar.tsx
@@ -362,7 +362,7 @@ export const CalendarView = () => {
@@ -393,7 +393,7 @@ export const CalendarView = () => {
ref={provided.innerRef}
{...provided.draggableProps}
{...provided.dragHandleProps}
- className={`w-full cursor-pointer rounded bg-white p-1.5 hover:scale-105 ${
+ className={`w-full cursor-pointer truncate rounded bg-white p-1.5 hover:scale-105 ${
snapshot.isDragging ? "shadow-lg" : ""
}`}
>
diff --git a/apps/app/helpers/calendar.helper.ts b/apps/app/helpers/calendar.helper.ts
index 436fa237e..ea553e170 100644
--- a/apps/app/helpers/calendar.helper.ts
+++ b/apps/app/helpers/calendar.helper.ts
@@ -149,13 +149,13 @@ export const isSameYear = (yearString: string, date: Date) => {
};
export const addSevenDaysToDate = (date: Date) => {
- const currentDate = date;
+ const currentDate = new Date(date);
const newDate = new Date(currentDate.setDate(currentDate.getDate() + 7));
return newDate;
};
export const subtract7DaysToDate = (date: Date) => {
- const currentDate = date;
+ const currentDate = new Date(date);
const newDate = new Date(currentDate.getTime() - 7 * 24 * 60 * 60 * 1000);
return newDate;
};