Skip to content

Commit e283983

Browse files
authored
fix retry button showing while loading (#894)
1 parent 0f7a55d commit e283983

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/lib/components/chat/ChatWindow.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@
8888
$: lastMessage = browser && (messages.find((m) => m.id == $convTreeStore.leaf) as Message);
8989
$: lastIsError =
9090
lastMessage &&
91-
((lastMessage.from === "user" && !loading) ||
91+
!loading &&
92+
(lastMessage.from === "user" ||
9293
lastMessage.updates?.findIndex((u) => u.type === "status" && u.status === "error") !== -1);
9394
9495
$: sources = files.map((file) => file2base64(file));

0 commit comments

Comments
 (0)