fix(embed): fix follow button not showing up in offline embed. Closes #4053
This commit is contained in:
@@ -39,6 +39,8 @@ export const OfflineEmbed: FC<OfflineEmbedProps> = ({
|
||||
useEffect(() => {
|
||||
if (!supportsFollows) {
|
||||
setCurrentMode(EmbedMode.CannotFollow);
|
||||
} else if (currentMode === EmbedMode.CannotFollow) {
|
||||
setCurrentMode(EmbedMode.CanFollow);
|
||||
}
|
||||
}, [supportsFollows]);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user