diff --git a/src/components/Modal/JoinCrewModal.tsx b/src/components/Modal/JoinCrewModal.tsx
index 5615e98..325b2cd 100644
--- a/src/components/Modal/JoinCrewModal.tsx
+++ b/src/components/Modal/JoinCrewModal.tsx
@@ -106,7 +106,7 @@ const JoinCrewModal = (props: ModalProps): React.ReactElement => {
{/* crew description */}
크루소개
-
diff --git a/src/hooks/useModals.ts b/src/hooks/useModals.ts
index dcf4f54..0596b97 100644
--- a/src/hooks/useModals.ts
+++ b/src/hooks/useModals.ts
@@ -12,6 +12,7 @@ export const useModals = (): UseModalResult => {
const modalsState = useContext(ModalsStateContext)
const openModal = (Component: ModalComponent, props: ModalProps): void => {
+ if (modalsState.findIndex((m) => m.Component === Component) >= 0) return
open(Component, props)
}
diff --git a/src/providers/ModalsProvider.tsx b/src/providers/ModalsProvider.tsx
index 2dbfecc..f60ba07 100644
--- a/src/providers/ModalsProvider.tsx
+++ b/src/providers/ModalsProvider.tsx
@@ -11,7 +11,6 @@ const ModalsProvider = ({ children }: PropsWithChildren): React.ReactNode => {
const [openedModals, setOpenedModals] = useState
([])
const open = (Component: ModalComponent, props: ModalProps): void => {
- console.log(Component, props)
setOpenedModals((modals) => {
return [...modals, { Component, props }]
})