diff --git a/src/components/DataDecode/DataDecode.tsx b/src/components/DataDecode/DataDecode.tsx index ba41ea37f..2d263e09a 100644 --- a/src/components/DataDecode/DataDecode.tsx +++ b/src/components/DataDecode/DataDecode.tsx @@ -27,8 +27,7 @@ export const decode = ( } catch {} return part; case DecodeMethodType.decimal: - const bn = new BigNumber(part, 16); - return bn.toString(10); + return part !== '' ? new BigNumber(part, 16).toString(10) : ''; case DecodeMethodType.smart: try { const bech32Encoded = bech32.encode(part); diff --git a/src/pages/TransactionDetails/components/EventsList/EventsList.tsx b/src/pages/TransactionDetails/components/EventsList/EventsList.tsx index 3a05f54a0..915511bf7 100644 --- a/src/pages/TransactionDetails/components/EventsList/EventsList.tsx +++ b/src/pages/TransactionDetails/components/EventsList/EventsList.tsx @@ -15,7 +15,7 @@ const EventTopics = ({ topics: EventType['topics']; identifier?: string; }) => { - const mergedTopics = topics.filter((topic) => topic).join('\n'); + const mergedTopics = topics.join('\n'); return ; };