From b02a1d3a55c7e8320b17cc846601506ef9878e14 Mon Sep 17 00:00:00 2001 From: user Date: Sat, 28 Feb 2026 11:38:49 -0800 Subject: [PATCH] fix: always use 'Transaction' as detail view heading The transaction detail view was dynamically changing its title to match the transaction type (e.g. 'Swap' for contract interactions), causing inconsistency with the Screen Map specification. The heading is now always 'Transaction' regardless of type. The action type is still shown in the 'Action' detail section below. Closes #65 --- src/popup/views/transactionDetail.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/popup/views/transactionDetail.js b/src/popup/views/transactionDetail.js index cee3cb4..d24e040 100644 --- a/src/popup/views/transactionDetail.js +++ b/src/popup/views/transactionDetail.js @@ -143,11 +143,10 @@ function render() { typeEl.textContent = tx.directionLabel; typeSection.classList.remove("hidden"); } - if (headingEl) headingEl.textContent = tx.directionLabel; } else { if (typeSection) typeSection.classList.add("hidden"); - if (headingEl) headingEl.textContent = "Transaction"; } + if (headingEl) headingEl.textContent = "Transaction"; // Hide calldata and raw data sections; re-fetch if this is a contract call const calldataSection = $("tx-detail-calldata-section");