Skip to content

Commit 4ccb991

Browse files
committed
Update Messages.tsx
1 parent 6041576 commit 4ccb991

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/Messages.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,8 @@ function scrollKeyForItems(items: ConversationItem[]) {
194194
case "review":
195195
return `${last.id}-${last.state}-${last.text.length}`;
196196
default:
197-
return last.id;
197+
const _exhaustive: never = last;
198+
return _exhaustive;
198199
}
199200
}
200201

0 commit comments

Comments
 (0)