aboutsummaryrefslogtreecommitdiff
path: root/src/components/common/FriendsButton.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-05-24 17:24:44 -0400
committerIvan Chen <ivan@tagg.id>2021-05-24 17:24:44 -0400
commita413ca2a7ad004dcfd079b992810e1e63d46660d (patch)
treeeb073dcbe6ff7a5a55839150784480774a803968 /src/components/common/FriendsButton.tsx
parent002015e9943ab34d7690babf0fdd24e16b62cf17 (diff)
parent53f624423fa8f758da5542e62704b59fa53316ea (diff)
Merge branch 'master' into tma889-touchable-triangle
Diffstat (limited to 'src/components/common/FriendsButton.tsx')
-rw-r--r--src/components/common/FriendsButton.tsx8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/components/common/FriendsButton.tsx b/src/components/common/FriendsButton.tsx
index ae901229..e7a1f8c7 100644
--- a/src/components/common/FriendsButton.tsx
+++ b/src/components/common/FriendsButton.tsx
@@ -31,11 +31,9 @@ const FriendsButton: React.FC<FriendsButtonProps> = ({
}) => {
const dispatch = useDispatch();
- const {
- user = NO_USER,
- profile = NO_PROFILE,
- } = useSelector((state: RootState) =>
- userXId ? state.userX[screenType][userXId] : state.user,
+ const {user = NO_USER, profile = NO_PROFILE} = useSelector(
+ (state: RootState) =>
+ userXId ? state.userX[screenType][userXId] : state.user,
);
const {user: loggedInUser = NO_USER} = useSelector(