diff options
| author | Henry Jameson <me@hjkos.com> | 2019-03-12 22:10:22 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-03-12 22:10:22 +0200 |
| commit | 27cbe3ca658e3f9a40650f119854cd7d31094085 (patch) | |
| tree | f1911bbf2009d9906733f8882cff51a6c41d46b2 /src/components/user_profile/user_profile.js | |
| parent | ce8b5fcd11aed0dedf8dd8c16190e9f1a826da2d (diff) | |
レインせんぱいにサンキュー
Diffstat (limited to 'src/components/user_profile/user_profile.js')
| -rw-r--r-- | src/components/user_profile/user_profile.js | 7 |
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 |
