diff --git a/components/TruncatedAddress.tsx b/components/TruncatedAddress.tsx index ded4f1f4..d5ca5655 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 = ({ ) : ( - + )}