Skip to content

Commit

Permalink
fix retry button showing while loading (#894)
Browse files Browse the repository at this point in the history
  • Loading branch information
nsarrazin committed Mar 1, 2024
1 parent 0f7a55d commit e283983
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/lib/components/chat/ChatWindow.svelte
Expand Up @@ -88,7 +88,8 @@
$: lastMessage = browser && (messages.find((m) => m.id == $convTreeStore.leaf) as Message);
$: lastIsError =
lastMessage &&
((lastMessage.from === "user" && !loading) ||
!loading &&
(lastMessage.from === "user" ||
lastMessage.updates?.findIndex((u) => u.type === "status" && u.status === "error") !== -1);
$: sources = files.map((file) => file2base64(file));
Expand Down

0 comments on commit e283983

Please sign in to comment.