ActionButton: remove `empty` variable(?)

sidenav-improvements
Alex Gleason 2 years ago
parent 6fa6e5b3b4
commit 22d37a2f10
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

@ -149,8 +149,6 @@ const ActionButton: React.FC<IActionButton> = ({ account, actionType, small }) =
return null; return null;
}; };
const empty = <></>;
if (!me) { if (!me) {
return renderLoggedOut(); return renderLoggedOut();
} }
@ -169,7 +167,7 @@ const ActionButton: React.FC<IActionButton> = ({ account, actionType, small }) =
if (account.relationship.isEmpty()) { if (account.relationship.isEmpty()) {
// Wait until the relationship is loaded // Wait until the relationship is loaded
return empty; return null;
} else if (account.getIn(['relationship', 'requested'])) { } else if (account.getIn(['relationship', 'requested'])) {
// Awaiting acceptance // Awaiting acceptance
return ( return (
@ -220,7 +218,7 @@ const ActionButton: React.FC<IActionButton> = ({ account, actionType, small }) =
); );
} }
return empty; return null;
}; };
export default ActionButton; export default ActionButton;

Loading…
Cancel
Save