From bcf10f4eb6642d646af2ea5263abb564a1b2f6e8 Mon Sep 17 00:00:00 2001 From: lianahus Date: Fri, 22 Sep 2023 00:18:26 +0200 Subject: [PATCH] style --- libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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()