Skip to content

Commit

Permalink
🐛 fix: Correct conditional check for shareId in ShareButton component
Browse files Browse the repository at this point in the history
  • Loading branch information
berry-13 committed Jan 5, 2025
1 parent 6e07382 commit 683f4a5
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,16 @@ import { useGetSharedLinkQuery } from 'librechat-data-provider/react-query';
import OGDialogTemplate from '~/components/ui/OGDialogTemplate';
import SharedLinkButton from './SharedLinkButton';
import { Spinner, OGDialog } from '~/components';
import { useToastContext } from '~/Providers';
import { useLocalize } from '~/hooks';

export default function ShareButton({
conversationId,
title,
open,
onOpenChange,
triggerRef,
children,
}: {
conversationId: string;
title: string;
open: boolean;
onOpenChange: React.Dispatch<React.SetStateAction<boolean>>;
triggerRef?: React.RefObject<HTMLButtonElement>;
Expand Down Expand Up @@ -81,7 +78,7 @@ export default function ShareButton({
</div>
)}

{share?.shareId !=== undefined && (
{share?.shareId !== null && (
<div className="cursor-text break-all text-center text-sm text-text-secondary">
{sharedLink}
</div>
Expand Down

0 comments on commit 683f4a5

Please sign in to comment.