Skip to content

Commit

Permalink
fix: 버튼 클릭 비활성화 위치 이동
Browse files Browse the repository at this point in the history
  • Loading branch information
llddang committed Jan 26, 2025
1 parent abca3ec commit 7134adf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/containers/study/CreateDocumentModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ const CreateDocumentModal = ({ isOpen, onClose, categoryData, category }: Docume

const onConfirmButtonClick = () => {
if (confirmPending) return;
setConfirmPending(true);
if (
category === 'create' &&
((doctype === 'IMAGE' && docList.IMAGE.length === 0) ||
Expand All @@ -83,6 +82,7 @@ const CreateDocumentModal = ({ isOpen, onClose, categoryData, category }: Docume
alert('학습 자료를 업로드해주세요.');
return;
}
setConfirmPending(true);

const createDocumentInfo: Document = {
title,
Expand Down

0 comments on commit 7134adf

Please sign in to comment.