aboutsummaryrefslogtreecommitdiff
path: root/src/components/user_profile/user_profile.js
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-03-12 22:10:22 +0200
committerHenry Jameson <me@hjkos.com>2019-03-12 22:10:22 +0200
commit27cbe3ca658e3f9a40650f119854cd7d31094085 (patch)
treef1911bbf2009d9906733f8882cff51a6c41d46b2 /src/components/user_profile/user_profile.js
parentce8b5fcd11aed0dedf8dd8c16190e9f1a826da2d (diff)
レインせんぱいにサンキュー
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 a8dfce2f..216ac392 100644
--- a/src/components/user_profile/user_profile.js
+++ b/src/components/user_profile/user_profile.js
@@ -100,9 +100,10 @@ const UserProfile = {
if (this.userId && !this.$route.params.name) {
fetchPromise = this.$store.dispatch('fetchUser', this.userId)
} else {
- fetchPromise = this.$store.dispatch('fetchUserByScreenName', this.userName)
- .then(userId => {
- this.fetchedUserId = userId
+ fetchPromise = this.$store.dispatch('fetchUser', this.userName)
+ .then(({ id }) => {
+ console.log(arguments)
+ this.fetchedUserId = id
})
}
return fetchPromise