Skip to content

Commit

Permalink
fix(chat): fix warning about old replay (Issue #2900) (#2899)
Browse files Browse the repository at this point in the history
  • Loading branch information
IlyaBondar authored Jan 2, 2025
1 parent a0ad2d5 commit b8b7c6d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/chat/src/components/Chat/TalkTo/TalkToCard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -164,14 +164,15 @@ export const TalkToCard = ({

const isOldReplay = useMemo(() => {
return (
entity.id === REPLAY_AS_IS_MODEL &&
conversation.replay &&
conversation.replay.isReplay &&
conversation.replay.replayUserMessagesStack &&
conversation.replay.replayUserMessagesStack.some(
(message) => !message.model,
)
);
}, [conversation.replay]);
}, [conversation.replay, entity.id]);

const menuItems: DisplayMenuItemProps[] = useMemo(
() => [
Expand Down

0 comments on commit b8b7c6d

Please sign in to comment.