From 1f47cbee2223b0c28e154ef9a828a2896d2a7869 Mon Sep 17 00:00:00 2001 From: mkljczk Date: Mon, 10 Mar 2025 14:09:45 +0100 Subject: [PATCH] pl-fe: fix relationship not loading Signed-off-by: mkljczk --- packages/pl-fe/src/features/ui/components/action-button.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/pl-fe/src/features/ui/components/action-button.tsx b/packages/pl-fe/src/features/ui/components/action-button.tsx index 650a523b3..7e89840b0 100644 --- a/packages/pl-fe/src/features/ui/components/action-button.tsx +++ b/packages/pl-fe/src/features/ui/components/action-button.tsx @@ -64,7 +64,7 @@ const ActionButton: React.FC = ({ account, actionType, small }) = const { isLoggedIn, me } = useLoggedIn(); const { follow, unfollow } = useFollow(); - const { relationship } = useRelationship(account.id); + const { relationship } = useRelationship(account.id, { enabled: true }); const { mutate: authorizeFollowRequest } = useAcceptFollowRequestMutation(account.id); const { mutate: rejectFollowRequest } = useRejectFollowRequestMutation(account.id); @@ -163,8 +163,6 @@ const ActionButton: React.FC = ({ account, actionType, small }) = }; const followRequestAction = () => { - if (relationship?.followed_by) return null; - return (