Skip to content

Take control over your live stream video by running it yourself. Streaming + chat out of the box.

Guard against null broadcaster. Hopefully addresses #635

Gabe Kangas29e598d24892
diff --git a/web/pages/components/main-layout.tsx b/web/pages/components/main-layout.tsx
index 23b2ccbe4c..92f906f5ed 100644
--- a/web/pages/components/main-layout.tsx
+++ b/web/pages/components/main-layout.tsx
@@ -42,7 +42,7 @@ export default function MainLayout(props) {
const { SubMenu } = Menu;
// status indicator items
- const streamDurationString = online ? parseSecondsToDurationString(differenceInSeconds(new Date(), new Date(broadcaster.time))) : "";
+ const streamDurationString = broadcaster ? parseSecondsToDurationString(differenceInSeconds(new Date(), new Date(broadcaster.time))) : "";
const currentThumbnail = online ? (
<img src="/thumbnail.jpg" className={adminStyles.onlineCurrentThumb} alt="current thumbnail" />
) : null;