From 489f840d84b0057cf9ddddcb8dc594bfc5ad628f Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Sat, 9 Mar 2019 11:54:11 +0200 Subject: [PATCH] fix error --- src/components/user_profile/user_profile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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