fix: remove duplication of original situation

This commit is contained in:
2026-08-04 18:58:42 +01:00
parent fd575e7fcb
commit 1f469fdadf
+7 -5
View File
@@ -268,17 +268,19 @@ function InvestigationHistory({ turns }) {
// ── Original situation (always-visible reference card) ────────
function OriginalSituation({ scenario, centralStatement }) {
if (!scenario) return null;
const text = scenario || centralStatement;
if (!text) return null;
return (
<div className="rounded-lg border border-gray-200 bg-gray-50/70 px-5 py-4">
<h2 className="mb-2 text-xs font-bold uppercase tracking-widest text-gray-400">
Original situation
</h2>
{centralStatement && (
<p className="mb-1 text-xs text-gray-400">{centralStatement}</p>
)}
<p className="whitespace-pre-wrap text-sm leading-relaxed text-gray-700">{scenario}</p>
<p className="whitespace-pre-wrap text-sm leading-relaxed text-gray-700">
{text}
</p>
</div>
);
}