Skip to content

Commit 84db0e8

Browse files
authored
chore: Small refactor
1 parent 1919558 commit 84db0e8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

js/chat/chat.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -247,9 +247,7 @@ class ChatInput extends LightElement {
247247

248248
if (submit) {
249249
this.#sendInput(focus);
250-
}
251-
252-
if (focus) {
250+
} else if (focus) {
253251
this.textarea.focus();
254252
}
255253
}

0 commit comments

Comments
 (0)