Skip to content

Commit

Permalink
fix: ChatGPTNextWeb#2672 should use correct resend index
Browse files Browse the repository at this point in the history
  • Loading branch information
Yidadaa authored Aug 21, 2023
1 parent a4040fc commit e114221
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e114221

Please sign in to comment.