From 0a0dffa793f2cea050507f811d1315348056348a Mon Sep 17 00:00:00 2001 From: shpuld Date: Tue, 29 Jan 2019 19:12:47 +0200 Subject: [PATCH] Fix favs timeline fetching when opening profile via direct url --- src/components/user_profile/user_profile.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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