diff --git a/frontend/src/components/documents/DocumentAcknowledgement.tsx b/frontend/src/components/documents/DocumentAcknowledgement.tsx index b58ffce5..da174b51 100644 --- a/frontend/src/components/documents/DocumentAcknowledgement.tsx +++ b/frontend/src/components/documents/DocumentAcknowledgement.tsx @@ -17,14 +17,12 @@ export function DocumentAcknowledgement({ }: DocumentAcknowledgementProps) { const [isSubmitting, setIsSubmitting] = useState(false); const [showAcknowledgements, setShowAcknowledgements] = useState(false); - const [notes, setNotes] = useState(""); const handleAcknowledge = async () => { setIsSubmitting(true); try { - await apiClient.acknowledgeDocument(document.id, notes || undefined); + await apiClient.acknowledgeDocument(document.id); toast.success("Прочтение подтверждено"); - setNotes(""); if (onAcknowledge) { onAcknowledge(); } @@ -56,14 +54,6 @@ export function DocumentAcknowledgement({ -