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 6a58e23cc9..74b9999a2f 100644 --- a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx +++ b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx @@ -812,9 +812,7 @@ const typewrite = (elementsRef, message, callback) => { count++ elementsRef.innerText = message.substr(0, count) // scroll when new line `
- if (elementsRef.lastChild.tagName === `BR`) { - callback() - } + if (elementsRef.lastChild.tagName === `BR`) callback() if (message.length === count) { clearInterval(id) callback()