Skip to content

Commit 518f3b9

Browse files
committed
fix
1 parent 87021b0 commit 518f3b9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

apps/web/app/s/[videoId]/_components/ShareHeader.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ export const ShareHeader = ({
6666

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

69-
console.log(data);
70-
7169
const { webUrl } = usePublicEnv();
7270

7371
useEffect(() => {
@@ -220,7 +218,7 @@ export const ShareHeader = ({
220218
) : (
221219
<Avatar
222220
className="rounded-full size-9"
223-
name={data.organizationName}
221+
name={data.organizationName ?? "Organization"}
224222
letterClass="text-sm"
225223
/>
226224
)}

apps/web/app/s/[videoId]/page.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,8 @@ export default async function ShareVideoPage(props: PageProps<"/s/[videoId]">) {
289289
duration: videos.duration,
290290
fps: videos.fps,
291291
hasPassword: sql`${videos.password} IS NOT NULL`.mapWith(Boolean),
292+
organizationIconUrl: organizations.iconUrl,
293+
organizationName: organizations.name,
292294
sharedOrganization: {
293295
organizationId: sharedVideos.organizationId,
294296
},

0 commit comments

Comments
 (0)