From 9d1c74eda030ffe2e3802870e2a9d27f1a14d3aa Mon Sep 17 00:00:00 2001 From: Hermes Date: Thu, 10 Sep 2026 13:15:47 +0200 Subject: [PATCH] =?UTF-8?q?fix(autocall):=20=D1=81=D0=B2=D0=BE=D0=B4=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BF=D0=BE=D0=BA=D0=B0=D0=B7=D1=8B=D0=B2=D0=B0=D0=B5?= =?UTF-8?q?=D1=82=20=D0=BF=D0=BE=D1=81=D0=BB=D0=B5=D0=B4=D0=BD=D0=B8=D0=B9?= =?UTF-8?q?=20=D1=83=D1=81=D0=BF=D0=B5=D1=88=D0=BD=D1=8B=D0=B9=20=D0=B7?= =?UTF-8?q?=D0=B2=D0=BE=D0=BD=D0=BE=D0=BA;=20=D1=82=D0=B5=D0=BA=D1=81?= =?UTF-8?q?=D1=82=20=D0=B2=20=D1=81=D0=B2=D0=BE=D0=B4=D0=BA=D0=B5=20=D0=BF?= =?UTF-8?q?=D0=B5=D1=80=D0=B5=D0=BD=D0=BE=D1=81=D0=B8=D1=82=D1=81=D1=8F=20?= =?UTF-8?q?=D0=B2=D0=BC=D0=B5=D1=81=D1=82=D0=BE=20=D0=BE=D0=B1=D1=80=D0=B5?= =?UTF-8?q?=D0=B7=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/orders/OrderHistoryTimeline.jsx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/components/orders/OrderHistoryTimeline.jsx b/src/components/orders/OrderHistoryTimeline.jsx index eddff77..63b702c 100644 --- a/src/components/orders/OrderHistoryTimeline.jsx +++ b/src/components/orders/OrderHistoryTimeline.jsx @@ -382,8 +382,12 @@ const StatusSummary = ({ order, smsLogs = [], autocallLogs = [] }) => { items.push({ icon: "📞", label: "Звонок", value: "не звонили", tone: "muted" }); } - // Автодозвон — итог по последнему звонку робота - const lastAutocall = autocallLogs && autocallLogs.length > 0 ? autocallLogs[0] : null; + // Автодозвон — итог: показываем последний УСПЕШНЫЙ звонок (confirmed), + // если его не было — последний звонок любым исходом. + const confirmedAutocall = autocallLogs?.find((l) => + ["confirmed", "confirmed_silent", "confirmed_kept_previous"].includes(l.outcome) + ); + const lastAutocall = confirmedAutocall || (autocallLogs && autocallLogs.length > 0 ? autocallLogs[0] : null); if (lastAutocall) { const acMeta = AUTOCALL_OUTCOME_LABELS[lastAutocall.outcome] || { label: lastAutocall.outcome || "—", tone: "muted" }; const acSlot = autocallSlotText(lastAutocall); @@ -442,7 +446,7 @@ const StatusSummary = ({ order, smsLogs = [], autocallLogs = [] }) => { {item.icon}

{item.label}

-

+

{item.value}