From 020f9885d67775fd9bc9870fb4d0ba79154a305e Mon Sep 17 00:00:00 2001 From: Jun Ma Date: Tue, 25 Apr 2023 21:49:07 +0800 Subject: [PATCH] fix: user account add zero address link jump --- components/TruncatedAddress.tsx | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/components/TruncatedAddress.tsx b/components/TruncatedAddress.tsx index ded4f1f43..d5ca5655e 100644 --- a/components/TruncatedAddress.tsx +++ b/components/TruncatedAddress.tsx @@ -23,18 +23,7 @@ const TruncatedAddress = ({ domain?: string placement?: 'top' | 'bottom' }) => { - if (address === ZERO_ADDRESS) { - return ( - - - - zero address - - - - ) - } - + const isZeroAddress = address === ZERO_ADDRESS const addrDisplay = getAddressDisplay({ eth_address: address, script_hash: address, @@ -67,7 +56,7 @@ const TruncatedAddress = ({ ) : ( - + )}