Skip to content

Commit

Permalink
Merge pull request #16 from multiversx/next
Browse files Browse the repository at this point in the history
Next
  • Loading branch information
radumojic authored Nov 2, 2023
2 parents 61ca5be + ef28fbf commit 00d00f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/components/DataDecode/DataDecode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 <DataDecode value={mergedTopics} identifier={identifier} />;
};
Expand Down

0 comments on commit 00d00f5

Please sign in to comment.