Skip to content

Commit 67d3f78

Browse files
joeizangAniket-Engg
authored andcommitted
fix compilation details
1 parent 3778cd0 commit 67d3f78

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

libs/remix-ui/vyper-compile-details/src/lib/vyperCompile.tsx

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,18 +58,22 @@ export default function VyperCompile({result, theme, themeStyle}: VyperCompilePr
5858
<Tab eventKey={content.eventKey} title={content.tabHeadingText} as={'span'} key={`${index}-${content.eventKey}`}>
5959
<div className="d-flex flex-column w-75 justify-content-center mx-auto rounded-2">
6060
<CopyToClipboard getContent={() => (content.eventKey !== 'abi' ? content.tabPayload : JSON.stringify(result['abi']))}>
61-
<Button variant="info" className="copy mt-3 ml-2" data-id={content.eventKey === 'abi' ? 'copy-abi' : ''}>
61+
<Button
62+
variant="info"
63+
className="copy mt-3 ml-2"
64+
data-id={content.eventKey === 'abi' ? 'copy-abi' : ''}
65+
>
6266
<span className="far fa-copy mr-2"></span>
6367
{content.tabButtonText()}
6468
</Button>
6569
</CopyToClipboard>
6670
{content.eventKey === 'abi' ? (
6771
<div className="my-3">
68-
<JSONTree
72+
{JSON.stringify(content?.tabPayload)?.length > 1 ? <JSONTree
6973
src={content.tabPayload as ABIDescription[]}
7074
theme={theme}
7175
style={themeStyle}
72-
/>
76+
/> : null}
7377
</div>
7478
) : (
7579
<div className="w-100 mt-2 p-2 mx-auto">

0 commit comments

Comments
 (0)