aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/ProfilePreview.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-03-12 19:51:10 -0500
committerGitHub <noreply@github.com>2021-03-12 19:51:10 -0500
commit6925ea442b9779a5ed36b786de268bd4db141fa5 (patch)
tree7181b6adba950c524b7eb413ce5ee8a10785e62c /src/components/profile/ProfilePreview.tsx
parentf1e4e10b6d67a87a02fc8b7af1072aa0d8886364 (diff)
parentc751b804a30fb36c92ba67a53d67a199a89b128a (diff)
Merge pull request #297 from IvanIFChen/hotfix-friend-profile-fix
[HOTFIX] Unable to navigate to profile from friend's list
Diffstat (limited to 'src/components/profile/ProfilePreview.tsx')
-rw-r--r--src/components/profile/ProfilePreview.tsx4
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 =