fix: JSX comment inside ternary breaks parsing

This commit is contained in:
2026-08-05 08:51:10 +01:00
parent 592962325d
commit 975a965b10
+3 -5
View File
@@ -679,8 +679,7 @@ export default function ReasoningWorkspace({
{updateStatus === "success" && !isUpdating && <UpdateAcknowledgement updateResult={result} />}
{/* ── Response area (replaced by loading / error during reasoning) ─ */}
{!isUpdating ? (
canAnswer && (
{!isUpdating && canAnswer ? (
<form onSubmit={handleUpdateCaptureAndSubmit} className="space-y-4 rounded-lg border border-gray-200 bg-white p-5">
<div>
<label htmlFor="rw-answer" className="mb-2 block text-sm font-medium text-gray-700">
@@ -709,9 +708,8 @@ export default function ReasoningWorkspace({
</button>
</div>
</form>
)
) : (
/* ── Local update loading card (replaces response panel) ─ */}
) : !isUpdating ? null : (
/* Local update loading card — replaces the response panel during reasoning */
<LoadingOverlay
elapsed={updateElapsed}
currentMessage={updateMsg}