From fd9435d45f2f2db470bf596a300312f8af5175e1 Mon Sep 17 00:00:00 2001 From: Stella Cannefax Date: Thu, 5 May 2022 01:56:38 -0500 Subject: [PATCH] make genesis transaction display friendlier (#1817) Handles --- explorer/client/src/components/longtext/Longtext.tsx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/explorer/client/src/components/longtext/Longtext.tsx b/explorer/client/src/components/longtext/Longtext.tsx index d7e6631eb3644..5f1a3b6d1b0e2 100644 --- a/explorer/client/src/components/longtext/Longtext.tsx +++ b/explorer/client/src/components/longtext/Longtext.tsx @@ -55,6 +55,15 @@ function Longtext({ navigateWithUnknown(text, navigate).then(() => setPleaseWait(false)); }, [text, navigate]); + // temporary hack to make display of the genesis transaction clearer + if ( + category === 'transactions' && + text === 'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=' + ) { + text = 'Genesis'; + isLink = false; + } + let textComponent; if (isLink) { if (category === 'unknown') {