Skip to content

Commit 00485f9

Browse files
committed
fixed initial duplication of bot output
1 parent cc4bd77 commit 00485f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

code-helper/client/src/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ class VoiceChatClient {
220220
const curSpan = this.botSpans[this.curBotSpan];
221221
if (!curSpan) return;
222222
const spanInnards = curSpan.innerHTML.replace(/<\/?strong>/g, '');
223-
const alreadyEmboldened = spanInnards.slice(0, this.lastBotWordIndex);
223+
const alreadyEmboldened = spanInnards.slice(0, this.lastBotWordIndex || 0);
224224
const yetToEmbolden = spanInnards.slice(this.lastBotWordIndex || 0);
225225

226226
const wordIndex = yetToEmbolden.indexOf(word);

0 commit comments

Comments
 (0)