@@ -756,7 +756,7 @@ const EventDetail: React.FC = () => {
756756 { /* 사이드바 - 스태프 코드 발급 */ }
757757 < div className = { styles [ "event-detail-sidebar" ] } ref = { sidebarRef } style = { { alignSelf : "flex-start" } } >
758758 < div ref = { sidebarInnerRef } >
759- { ! isEventArchived ( eventData . status ) && staffCodeError && staffCodeError . includes ( "담당자만" ) ? (
759+ { ! isEventArchived ( eventData . status ) && ! isCompletedEvent && staffCodeError && staffCodeError . includes ( "담당자만" ) ? (
760760 < div className = { styles [ "staff-code-section" ] } >
761761 < div className = { styles [ "staff-code-content" ] } >
762762 < h4 className = { styles [ "staff-code-title" ] } > 스태프 코드</ h4 >
@@ -765,14 +765,14 @@ const EventDetail: React.FC = () => {
765765 </ p >
766766 </ div >
767767 </ div >
768- ) : ! isEventArchived ( eventData . status ) && isLoadingStaffCode ? (
768+ ) : ! isEventArchived ( eventData . status ) && ! isCompletedEvent && isLoadingStaffCode ? (
769769 < div className = { styles [ "staff-code-section" ] } >
770770 < div className = { styles [ "staff-code-content" ] } >
771771 < h4 className = { styles [ "staff-code-title" ] } > 스태프 코드</ h4 >
772772 < p className = { styles [ "staff-code-description" ] } > 로딩 중...</ p >
773773 </ div >
774774 </ div >
775- ) : ! isEventArchived ( eventData . status ) && staffCode ? (
775+ ) : ! isEventArchived ( eventData . status ) && ! isCompletedEvent && staffCode ? (
776776 < div className = { styles [ "staff-code-section" ] } >
777777 < div className = { styles [ "staff-code-content" ] } >
778778 < h4 className = { styles [ "staff-code-title" ] } > 스태프 코드</ h4 >
@@ -807,7 +807,7 @@ const EventDetail: React.FC = () => {
807807 < p > 재발급 시 이전 코드는 즉시 무효화됩니다</ p >
808808 </ div >
809809 </ div >
810- ) : ! isEventArchived ( eventData . status ) ? (
810+ ) : ! isEventArchived ( eventData . status ) && ! isCompletedEvent ? (
811811 < div className = { styles [ "staff-code-section" ] } >
812812 < div className = { styles [ "staff-code-content" ] } >
813813 < h4 className = { styles [ "staff-code-title" ] } > 스태프 코드 발급</ h4 >
0 commit comments