- 시작일:{' '}
- {selectedItem.study_start.split('T')[0]}
+ {selectedItem.study_start && (
+
+ 시작일:{' '}
+ {selectedItem.study_start.split('T')[0]}
+
+ )}
- 종료일:{' '}
- {selectedItem.study_end.split('T')[0]}
+ {selectedItem.study_end && (
+
+ 종료일:{' '}
+ {selectedItem.study_end.split('T')[0]}
+
+ )}
diff --git a/src/components/studypage/Posts.tsx b/src/components/studypage/Posts.tsx
index 28de9dc..0701694 100644
--- a/src/components/studypage/Posts.tsx
+++ b/src/components/studypage/Posts.tsx
@@ -138,7 +138,9 @@ export default function Posts({ studyList }: { studyList: StudyItem[] }) {
>
{'study_name' in item ? '스터디' : '프로젝트'}
- ~{item.study_end.split('T')[0]}
+
+ {item.study_end ? `~${item.study_end.split('T')[0]}` : ''}
+