diff --git a/app/soapbox/features/ui/components/action-button.tsx b/app/soapbox/features/ui/components/action-button.tsx index e79c22567..c710f43d9 100644 --- a/app/soapbox/features/ui/components/action-button.tsx +++ b/app/soapbox/features/ui/components/action-button.tsx @@ -105,10 +105,9 @@ const ActionButton = ({ account, actionType, small }: iActionButton) => { ); }; - const empty = <>; - - if (!me) { - // Remote follow + /** Render a remote follow button, depending on features. */ + const renderRemoteFollow = (): JSX.Element | null => { + // Remote follow through the API. if (features.remoteInteractionsAPI) { return (