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

This commit is contained in:
Gabe Kangas
2024-12-12 22:42:21 -08:00
parent c8d8c8e07c
commit e1a48909c8

View File

@@ -39,6 +39,8 @@ export const OfflineEmbed: FC<OfflineEmbedProps> = ({
useEffect(() => {
if (!supportsFollows) {
setCurrentMode(EmbedMode.CannotFollow);
} else if (currentMode === EmbedMode.CannotFollow) {
setCurrentMode(EmbedMode.CanFollow);
}
}, [supportsFollows]);