From 13bb2cbe4c6ed0ba758a10b90e54833fff71164a Mon Sep 17 00:00:00 2001 From: Ivan Chen Date: Sat, 20 Feb 2021 13:10:23 -0500 Subject: fix for taggs bar not appearing for sp preview --- src/screens/suggestedPeople/SuggestedPeopleScreen.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/screens/suggestedPeople/SuggestedPeopleScreen.tsx b/src/screens/suggestedPeople/SuggestedPeopleScreen.tsx index 40691eba..cdcc640f 100644 --- a/src/screens/suggestedPeople/SuggestedPeopleScreen.tsx +++ b/src/screens/suggestedPeople/SuggestedPeopleScreen.tsx @@ -48,6 +48,9 @@ const SuggestedPeopleScreen: React.FC = () => { const {suggested_people_linked} = useSelector( (state: RootState) => state.user.profile, ) ?? {suggested_people_linked: -1}; + const {userId: loggedInUserId} = useSelector( + (state: RootState) => state.user.user, + ); const [people, setPeople] = useState([]); const [page, setPage] = useState(0); const [refreshing, setRefreshing] = useState(false); @@ -182,7 +185,9 @@ const SuggestedPeopleScreen: React.FC = () => {