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(() => {
|
useEffect(() => {
|
||||||
if (!supportsFollows) {
|
if (!supportsFollows) {
|
||||||
setCurrentMode(EmbedMode.CannotFollow);
|
setCurrentMode(EmbedMode.CannotFollow);
|
||||||
|
} else if (currentMode === EmbedMode.CannotFollow) {
|
||||||
|
setCurrentMode(EmbedMode.CanFollow);
|
||||||
}
|
}
|
||||||
}, [supportsFollows]);
|
}, [supportsFollows]);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user