diff --git a/src/pages/Coop/components/Calendar/index.tsx b/src/pages/Coop/components/Calendar/index.tsx
index b800bc1..249ec36 100644
--- a/src/pages/Coop/components/Calendar/index.tsx
+++ b/src/pages/Coop/components/Calendar/index.tsx
@@ -95,6 +95,8 @@ export default function Calendar({ selectedDate, setSelectedDate }: CalendarProp
setSelectedDate(today);
};
+ const getSelectedDate = () => `${selectedDate.getMonth() + 1}월 ${selectedDate.getDate()}일 ${DAYS[selectedDate.getDay()]}요일`;
+
return (
{isMobile ? (
@@ -108,7 +110,7 @@ export default function Calendar({ selectedDate, setSelectedDate }: CalendarProp
{dateListFormState === 'month' ? '월간 식단' : '주간 식단'}
- {`${selectedDate.getMonth() + 1}월 ${selectedDate.getDate()}일 ${DAYS[selectedDate.getDay()]}요일`}
+ {getSelectedDate()}
@@ -176,7 +178,7 @@ export default function Calendar({ selectedDate, setSelectedDate }: CalendarProp
{dateListFormState === 'month' ? '월간 식단' : '주간 식단'}
- {`${selectedDate.getMonth() + 1}월 ${selectedDate.getDate()}일 ${DAYS[selectedDate.getDay()]}요일`}
+ {getSelectedDate()}