Skip to content

Commit

Permalink
Only show mailbox if it is valid
Browse files Browse the repository at this point in the history
  • Loading branch information
jmrossy committed Aug 16, 2024
1 parent 5d80996 commit 70c974a
Showing 1 changed file with 11 additions and 8 deletions.
19 changes: 11 additions & 8 deletions src/features/messages/cards/TransactionCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Link from 'next/link';
import { PropsWithChildren, ReactNode, useState } from 'react';

import { MultiProvider } from '@hyperlane-xyz/sdk';
import { isAddress } from '@hyperlane-xyz/utils';

import { Spinner } from '../../../components/animations/Spinner';
import { ChainLogo } from '../../../components/icons/ChainLogo';
Expand Down Expand Up @@ -235,14 +236,16 @@ function TransactionDetails({
showCopy={true}
blurValue={blur}
/>
<KeyValueRow
label="Mailbox:"
labelWidth="w-16"
display={mailbox}
displayWidth="w-60 sm:w-64"
showCopy={true}
blurValue={blur}
/>
{mailbox && isAddress(mailbox) && (
<KeyValueRow
label="Mailbox:"
labelWidth="w-16"
display={mailbox}
displayWidth="w-60 sm:w-64"
showCopy={true}
blurValue={blur}
/>
)}
{!!timestamp && (
<KeyValueRow
label="Time:"
Expand Down

0 comments on commit 70c974a

Please sign in to comment.