conditional rendering of vyper results

pull/4182/head
Joseph Izang 12 months ago
parent 2890a82b79
commit 8ec50238f6
  1. 12
      apps/vyper/src/app/app.tsx

@ -105,9 +105,15 @@ const App: React.FC = () => {
/>
</div>
<article id="result" className="px-2">
<h5>Result Output!</h5>
{Object.keys(output).length > 0 ? <VyperResult output={output} themeColor={remixClient.checkActiveTheme()} /> : null}
{console.log(output)}
<article id="result" className="px-2 mx-2 border-top mt-3">
{
output && Object.keys(output).length > 0 ? (
<>
<VyperResult output={output} />
</>
) : null
}
</article>
</section>
</main>

Loading…
Cancel
Save