From 145a9bd2058bf4491435d6c03299760369ed6a17 Mon Sep 17 00:00:00 2001 From: AI Assistant Date: Wed, 29 Oct 2025 13:56:33 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=20=D1=80=D0=B0=D1=81=D1=87=D1=91=D1=82=20?= =?UTF-8?q?=D0=BF=D1=80=D0=BE=D0=B3=D1=80=D0=B5=D1=81=D1=81=D0=B0=20=D0=B7?= =?UTF-8?q?=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B8=20=D0=B4=D0=BE=D0=BA?= =?UTF-8?q?=D1=83=D0=BC=D0=B5=D0=BD=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Было: (currentDocNumber / totalDocs) * 100 Документ 2/2 показывал 100% ДО загрузки - Стало: ((currentDocNumber - 1) / totalDocs) * 100 Документ 1/2: 0% (до загрузки) → 50% (после) Документ 2/2: 50% (до загрузки) → 100% (после) --- frontend/src/components/form/StepDocumentUpload.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/form/StepDocumentUpload.tsx b/frontend/src/components/form/StepDocumentUpload.tsx index d38c30e..90cd327 100644 --- a/frontend/src/components/form/StepDocumentUpload.tsx +++ b/frontend/src/components/form/StepDocumentUpload.tsx @@ -215,11 +215,11 @@ const StepDocumentUpload: React.FC = ({ Документ {currentDocNumber} из {totalDocs} - {Math.round((currentDocNumber / totalDocs) * 100)}% завершено + {Math.round(((currentDocNumber - 1) / totalDocs) * 100)}% завершено