Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions apps/web/app/s/[videoId]/_components/ShareHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const ShareHeader = ({
data: typeof videos.$inferSelect & {
ownerName?: string | null;
ownerImage?: string | null;
ownerIsPro?: boolean;
};
user: typeof userSelectProps | null;
customDomain?: string | null;
Expand Down Expand Up @@ -63,7 +64,7 @@ export const ShareHeader = ({
const contextSharedSpaces = contextData?.sharedSpaces || null;
const effectiveSharedSpaces = contextSharedSpaces || sharedSpaces;

const isOwner = user && user.id.toString() === data.ownerId;
const isOwner = user && user.id === data.ownerId;

const { webUrl } = usePublicEnv();

Expand Down Expand Up @@ -130,7 +131,7 @@ export const ShareHeader = ({
}
};

const isVideoOwnerPro: boolean = user && isOwner ? userIsPro(user) : false;
const isVideoOwnerPro: boolean = data.ownerIsPro ?? false;

const handleSharingUpdated = () => {
refresh();
Expand Down