From c751b804a30fb36c92ba67a53d67a199a89b128a Mon Sep 17 00:00:00 2001
From: Ivan Chen <ivan@tagg.id>
Date: Fri, 12 Mar 2021 19:49:09 -0500
Subject: import the right thing

---
 src/components/profile/ProfilePreview.tsx | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'src/components/profile/ProfilePreview.tsx')

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 =
-- 
cgit v1.2.3-70-g09d2

