From aeb23f9d22c91e23acb5d5499fd39f5bb1a6bb9b Mon Sep 17 00:00:00 2001 From: J M Rossy Date: Sat, 11 May 2024 10:15:39 -0400 Subject: [PATCH] Fix various warnings --- src/components/search/SearchStates.tsx | 2 +- src/features/messages/MessageTable.tsx | 22 ++++++++++--------- .../messages/cards/ContentDetailsCard.tsx | 1 + src/features/messages/queries/parse.ts | 2 +- 4 files changed, 15 insertions(+), 12 deletions(-) diff --git a/src/components/search/SearchStates.tsx b/src/components/search/SearchStates.tsx index 4fbf135..5378680 100644 --- a/src/components/search/SearchStates.tsx +++ b/src/components/search/SearchStates.tsx @@ -113,7 +113,7 @@ export function SearchUnknownError({ show }: { show: boolean }) { ); diff --git a/src/features/messages/MessageTable.tsx b/src/features/messages/MessageTable.tsx index 44a9b85..155ae51 100644 --- a/src/features/messages/MessageTable.tsx +++ b/src/features/messages/MessageTable.tsx @@ -95,16 +95,18 @@ export function MessageSummaryRow({ message, mp }: { message: MessageStub; mp: M {getHumanReadableTimeString(origin.timestamp)} {statusIcon && ( -
- {statusTitle} -
+ + + {statusTitle} + + )} ); diff --git a/src/features/messages/cards/ContentDetailsCard.tsx b/src/features/messages/cards/ContentDetailsCard.tsx index 44f3ff9..46d20a3 100644 --- a/src/features/messages/cards/ContentDetailsCard.tsx +++ b/src/features/messages/cards/ContentDetailsCard.tsx @@ -51,6 +51,7 @@ export function ContentDetailsCard({ const rawBytes = useMemo(() => { try { + if (!originDomainId || !destinationDomainId) return ''; return formatMessage( MAILBOX_VERSION, nonce, diff --git a/src/features/messages/queries/parse.ts b/src/features/messages/queries/parse.ts index 05c829b..f5c2f2a 100644 --- a/src/features/messages/queries/parse.ts +++ b/src/features/messages/queries/parse.ts @@ -50,7 +50,7 @@ function parseMessageStub(multiProvider: MultiProvider, m: MessageStubEntry): Me let destinationChainId = m.destination_chain_id || multiProvider.tryGetChainId(destinationDomainId); if (!destinationChainId) { - logger.warn(`No chainId known for domain ${destinationDomainId}. Using domain as chainId`); + logger.debug(`No chainId known for domain ${destinationDomainId}. Using domain as chainId`); destinationChainId = destinationDomainId; } const isPiMsg =