aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHenry Jameson <me@hjkos.com>2019-03-09 11:54:11 +0200
committerHenry Jameson <me@hjkos.com>2019-03-09 11:54:11 +0200
commit489f840d84b0057cf9ddddcb8dc594bfc5ad628f (patch)
tree0c7cbd6a87e22f4390027c68fa8a6b69bde25623 /src
parentf3a9200b7c17de04bbedf16cb1ac5d9681ab73f4 (diff)
fix error
Diffstat (limited to 'src')
-rw-r--r--src/components/user_profile/user_profile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/components/user_profile/user_profile.js b/src/components/user_profile/user_profile.js
index dc9cdeeb..2d186bc5 100644
--- a/src/components/user_profile/user_profile.js
+++ b/src/components/user_profile/user_profile.js
@@ -105,7 +105,7 @@ const UserProfile = {
this.fetchedUserId = userId
})
}
- fetchPromise
+ return fetchPromise
.catch((reason) => {
const errorMessage = get(reason, 'error.error')
if (errorMessage === 'No user with such user_id') { // Known error