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}