From 22d37a2f10d10d6c829aa10ce0a8ff4ebceffd1e Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sat, 14 May 2022 11:49:28 -0500 Subject: [PATCH] ActionButton: remove `empty` variable(?) --- app/soapbox/features/ui/components/action-button.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/soapbox/features/ui/components/action-button.tsx b/app/soapbox/features/ui/components/action-button.tsx index acf06e244..51348ee1d 100644 --- a/app/soapbox/features/ui/components/action-button.tsx +++ b/app/soapbox/features/ui/components/action-button.tsx @@ -149,8 +149,6 @@ const ActionButton: React.FC = ({ account, actionType, small }) = return null; }; - const empty = <>; - if (!me) { return renderLoggedOut(); } @@ -169,7 +167,7 @@ const ActionButton: React.FC = ({ account, actionType, small }) = if (account.relationship.isEmpty()) { // Wait until the relationship is loaded - return empty; + return null; } else if (account.getIn(['relationship', 'requested'])) { // Awaiting acceptance return ( @@ -220,7 +218,7 @@ const ActionButton: React.FC = ({ account, actionType, small }) = ); } - return empty; + return null; }; export default ActionButton;