diff --git a/src/components/who_to_follow/who_to_follow.js b/src/components/who_to_follow/who_to_follow.js index 44581f313..d528f67d5 100644 --- a/src/components/who_to_follow/who_to_follow.js +++ b/src/components/who_to_follow/who_to_follow.js @@ -24,11 +24,9 @@ const WhoToFollow = { id, credentials: useOAuthStore().token, }).then((result) => { - const { data: externalUser } = result - if (!externalUser.error) { - useUsersStore().addNewUsers(result) - this.users.push(externalUser) - } + const [user] = useUsersStore().addNewUsers(result) + + this.users.push(user) }) }) },