Skip to content

Commit

Permalink
Bug:
Browse files Browse the repository at this point in the history
	fixed a bug when entering profile page when not logged in
issues: #321 #341 #338
  • Loading branch information
alonttal committed Apr 28, 2018
1 parent ac21e26 commit be2bbf9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions views/src/components/AppUserProfile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@
}
},
computed: {
...mapGetters(['getUser']),
...mapGetters(['getUser', 'isAuthenticated']),
title() {
return (
this.profile.properties[1] && this.profile.properties[1].value.current
Expand All @@ -319,7 +319,7 @@
this.$store
.dispatch('fetchUser', { id })
.then((users) => {
this.isMyProfile = this.getUser._id === id;
this.isMyProfile = this.isAuthenticated && this.getUser._id === id;
this.initProfile(users[id]);
})
.catch(() => {
Expand Down

0 comments on commit be2bbf9

Please sign in to comment.