aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/ProfilePreview.tsx
diff options
context:
space:
mode:
authorAshm Walia <40498934+ashmgarv@users.noreply.github.com>2020-10-27 14:16:50 -0700
committerGitHub <noreply@github.com>2020-10-27 17:16:50 -0400
commit9b9b1b792f914709de01e1d502014b8deb66e291 (patch)
tree8d403d2232cfab31c590acd26222bfa476de4dee /src/components/profile/ProfilePreview.tsx
parent9c7a867c1851914322a4b60f20223ae06a31c661 (diff)
[HOT FIX] Fix stack navigation (#78)
* Fix stack navigation * Fix stack navigation
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 c527746a..ec0be50c 100644
--- a/src/components/profile/ProfilePreview.tsx
+++ b/src/components/profile/ProfilePreview.tsx
@@ -132,11 +132,11 @@ const ProfilePreview: React.FC<ProfilePreviewProps> = ({
loadProfile(user.id, user.username);
updateMoments(true);
if (!isComment) {
- navigation.navigate('Profile', {
+ navigation.push('Profile', {
isProfileView: true,
});
} else {
- navigation.navigate('ProfileView', {
+ navigation.push('ProfileView', {
isProfileView: true,
});
}