diff options
author | Ivan Chen <ivan@tagg.id> | 2021-03-12 19:51:10 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-12 19:51:10 -0500 |
commit | 6925ea442b9779a5ed36b786de268bd4db141fa5 (patch) | |
tree | 7181b6adba950c524b7eb413ce5ee8a10785e62c /src | |
parent | f1e4e10b6d67a87a02fc8b7af1072aa0d8886364 (diff) | |
parent | c751b804a30fb36c92ba67a53d67a199a89b128a (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')
-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 = |