Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
berry-13 committed Aug 9, 2024
1 parent 39f39ff commit 0d6d1fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions client/src/components/Chat/ExportAndShareMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ export default function ExportAndShareMenu({

const exportable =
conversation &&
conversation.conversationId &&
conversation.conversationId != null &&
conversation.conversationId !== 'new' &&
conversation.conversationId !== 'search';

if (!exportable) {
if (exportable === false) {
return null;
}

Expand Down Expand Up @@ -57,7 +57,7 @@ export default function ExportAndShareMenu({
align="end"
aria-label="Export and Share Menu"
>
{isSharedButtonEnabled && conversation.conversationId && (
{isSharedButtonEnabled && conversation.conversationId != null && (
<ShareButton
conversationId={conversation.conversationId}
title={conversation.title ?? ''}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import DeleteButton from './DeleteButton';
import ShareButton from './ShareButton';
import { useLocalize } from '~/hooks';

export default function Conversation({
export default function ConvoOptions({
conversation,
retainView,
renameHandler,
Expand Down

0 comments on commit 0d6d1fe

Please sign in to comment.