diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/components/profile/ProfilePreview.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/profile/ProfilePreview.tsx b/src/components/profile/ProfilePreview.tsx index f08335a1..9afb4aba 100644 --- a/src/components/profile/ProfilePreview.tsx +++ b/src/components/profile/ProfilePreview.tsx @@ -16,7 +16,6 @@ import {loadImageFromURL} from '../../services'; import {RootState} from '../../store/rootreducer'; import {PreviewType, ProfilePreviewType, ScreenType} from '../../types'; import { - addUserToRecentlyViewed, checkIfUserIsBlocked, fetchUserX, isIPhoneX, @@ -24,6 +23,7 @@ import { SCREEN_WIDTH, userXInStore, } from '../../utils'; +import {addUserToRecentlySearched} from '../../utils/search'; /** * This component returns user's profile picture friended by username as a touchable component. @@ -90,7 +90,7 @@ const ProfilePreview: React.FC<ProfilePreviewProps> = ({ return; } if (previewType !== 'Comment') { - await addUserToRecentlyViewed(user) + await addUserToRecentlySearched(user); } const userXId = |