fix error

This commit is contained in:
Henry Jameson 2019-03-09 11:54:11 +02:00
parent f3a9200b7c
commit 489f840d84

View file

@ -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