aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_profile/user_profile.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-03-11 02:17:49 +0200
committerHenry Jameson <me@hjkos.com>2019-03-11 02:17:58 +0200
commit06d39b62a8358c911b18f5acc378047035840465 (patch)
tree1d0179149d090929eec55125754b0f890b0889cc /src/components/user_profile/user_profile.js
parent489f840d84b0057cf9ddddcb8dc594bfc5ad628f (diff)
fixed tests, review fixes, now storing local users with downcase screen name for
better compatibility
Diffstat (limited to 'src/components/user_profile/user_profile.js')
-rw-r--r--src/components/user_profile/user_profile.js7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js
index 2d186bc5..a8dfce2f 100644
--- a/src/components/user_profile/user_profile.js
+++ b/src/components/user_profile/user_profile.js
@@ -68,7 +68,7 @@ const UserProfile = {
},
userInStore () {
const routeParams = this.$route.params
- return this.$store.getters.findUser(routeParams.name || routeParams.iid)
+ return this.$store.getters.findUser(routeParams.name || routeParams.id)
},
user () {
if (this.timeline.statuses[0]) {
@@ -135,13 +135,14 @@ const UserProfile = {
}
},
watch: {
- userId (newVal, oldVal) {
+ // userId can be undefined if we don't know it yet
+ userId (newVal) {
if (newVal) {
this.cleanUp()
this.startUp()
}
},
- userName (newVal, oldVal) {
+ userName () {
if (this.$route.params.name) {
this.fetchUserId()
this.cleanUp()