Skip to content

Commit

Permalink
Refactor: edit-modal textarea content
Browse files Browse the repository at this point in the history
  • Loading branch information
swgvenghy committed Aug 6, 2024
1 parent 6ab68ef commit b2e18a5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ui/components/admin/modal/edit-modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,8 @@ const EditModal = ({
const handleEditSubmit = async () => {
try {
await executeWithLoading(async () => {
await AdminEditAnswer(modalContentId, modalContent);
await AdminEditAnswer(modalContentId, content);
await AdminCheckQuestionAnswer({ questionId, check: true });
console.log('편집 및 확인 완료');
});
} catch (err) {
setEditStatus(false);
Expand All @@ -54,7 +53,6 @@ const EditModal = ({
const handleCheckToggle = async () => {
await executeWithLoading(async () => {
await AdminCheckQuestionAnswer({ questionId, check: !isChecked });
console.log('검토 상태 변경 완료');
});
};

Expand Down

0 comments on commit b2e18a5

Please sign in to comment.