diff options
author | Shravya Ramesh <shravs1208@gmail.com> | 2021-05-24 14:03:32 -0700 |
---|---|---|
committer | Shravya Ramesh <shravs1208@gmail.com> | 2021-05-24 14:03:32 -0700 |
commit | e09f37e73b45a58c0a6ebf8ad8b5216c91713f26 (patch) | |
tree | 73fc1435227e418be15480ca9b12d865dcb0f8a2 /src/components/common/FriendsButton.tsx | |
parent | 5afdf9208fd3d7498a2595797e6c9fb5f567fc61 (diff) |
Fix yarn lint issues
Diffstat (limited to 'src/components/common/FriendsButton.tsx')
-rw-r--r-- | src/components/common/FriendsButton.tsx | 8 |
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( |