Tweak to 'tx-content' component as conditional rendering was no longer needed

This commit is contained in:
sam-keen 2022-03-18 14:50:16 +00:00
parent edbf8244df
commit a160c54688

View File

@ -28,12 +28,8 @@ export const TxContent = ({ data }: TxContentProps) => {
</TableRow>
</Table>
{data.Command && (
<>
<h3 className="font-mono mb-8">Decoded transaction content</h3>
<SyntaxHighlighter data={JSON.parse(data.Command)} />
</>
)}
<h3 className="font-mono mb-8">Decoded transaction content</h3>
<SyntaxHighlighter data={JSON.parse(data.Command)} />
</>
);
};