Skip to content

Commit

Permalink
Update the conditions on showing the conv thread
Browse files Browse the repository at this point in the history
  • Loading branch information
Xm0onh committed Dec 24, 2024
1 parent 0547143 commit cca6886
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export function ApprovedMemoryView({ memory }: Props) {
</Text>
</VStack>

{(memory.mentions || memory.tweet?.thread) && (
{( (memory.mentions && memory.mentions.length > 0) || (memory.tweet?.thread && memory.tweet?.thread.length > 0)) && (
<>
<Text fontSize="md" fontWeight="bold" color="purple.400" mb={2}>
Conversation Thread
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function SkippedMemoryView({ memory }: Props) {
</Text>
</VStack>

{(memory.mentions || memory.tweet?.thread) && (
{( (memory.mentions && memory.mentions.length > 0) || (memory.tweet?.thread && memory.tweet?.thread.length > 0)) && (
<>
<Text fontSize="md" fontWeight="bold" color="purple.400" mb={2}>
Conversation Thread
Expand Down

0 comments on commit cca6886

Please sign in to comment.