aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_profile/user_profile.js
diff options
context:
space:
mode:
authorshpuld <shp@cock.li>2019-01-30 20:49:24 +0200
committershpuld <shp@cock.li>2019-01-30 20:49:24 +0200
commitc7cffbb6c70bbb21cf787d96e82e0261427b9234 (patch)
treea517e4942725286b173b685cbe87bc6c7878b66e /src/components/user_profile/user_profile.js
parent51024a2c8af9d88b07c050b7502fa62843aa4ba2 (diff)
parentb1facdf7ad54436c2afde7c28c917cda87a5b7e3 (diff)
Merge branch 'develop' into feat/media-modal
Diffstat (limited to 'src/components/user_profile/user_profile.js')
-rw-r--r--src/components/user_profile/user_profile.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js
index 991062cd..27e138b0 100644
--- a/src/components/user_profile/user_profile.js
+++ b/src/components/user_profile/user_profile.js
@@ -36,7 +36,8 @@ const UserProfile = {
return this.$route.params.name || this.user.screen_name
},
isUs () {
- return this.userId === this.$store.state.users.currentUser.id
+ return this.userId && this.$store.state.users.currentUser.id &&
+ this.userId === this.$store.state.users.currentUser.id
},
friends () {
return this.user.friends