diff --git a/apps/remix-ide/src/app/panels/terminal.js b/apps/remix-ide/src/app/panels/terminal.js index 35f94c3681..b63de7db45 100644 --- a/apps/remix-ide/src/app/panels/terminal.js +++ b/apps/remix-ide/src/app/panels/terminal.js @@ -105,7 +105,6 @@ class Terminal extends Plugin { } logHtml (html) { - // console.log({ html: html.innerText }) this.logHtmlResponse.push(html.innerText) this.renderComponent() this.resetLogHtml() diff --git a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx index a0728d144b..b33e443341 100644 --- a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx +++ b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx @@ -503,7 +503,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { {newstate.journalBlocks && newstate.journalBlocks.map((x, index) => { if (x.name === 'emptyBlock') { return ( -
+
[block:{x.message} - 0 {'transactions'} ]
@@ -520,18 +520,20 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { return x.message.map((msg, i) => { if (typeof msg === 'object') { return ( -
{ msg.value ? parse(msg.value) : JSON.stringify(msg) }
+
{ msg.value ? parse(msg.value) : JSON.stringify(msg) }
) } else { return ( -
{ msg ? msg.toString().replace(/,/g, '') : msg }
+
{ msg ? msg.toString().replace(/,/g, '') : msg }
) } }) } else { - return ( -
{x.message}
- ) + if (typeof x.message !== 'function') { + return ( +
{x.message}
+ ) + } } })}