diff --git a/app/components/chat.tsx b/app/components/chat.tsx index 65620858..9a9488dd 100644 --- a/app/components/chat.tsx +++ b/app/components/chat.tsx @@ -802,7 +802,7 @@ function _Chat() { (m) => m.id === message.id, ); - if (resendingIndex <= 0 || resendingIndex >= session.messages.length) { + if (resendingIndex < 0 || resendingIndex >= session.messages.length) { console.error("[Chat] failed to find resending message", message); return; }