Skip to content

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

fix(embed): fix follow button not showing up in offline embed. Closes #4053

Gabe Kangas4be758553858
diff --git a/web/components/ui/OfflineEmbed/OfflineEmbed.tsx b/web/components/ui/OfflineEmbed/OfflineEmbed.tsx
index ab22523fd7..7e4ac8742f 100644
--- a/web/components/ui/OfflineEmbed/OfflineEmbed.tsx
+++ b/web/components/ui/OfflineEmbed/OfflineEmbed.tsx
@@ -39,6 +39,8 @@ export const OfflineEmbed: FC<OfflineEmbedProps> = ({
useEffect(() => {
if (!supportsFollows) {
setCurrentMode(EmbedMode.CannotFollow);
+ } else if (currentMode === EmbedMode.CannotFollow) {
+ setCurrentMode(EmbedMode.CanFollow);
}
}, [supportsFollows]);