From dc4a8e506d1ddd632fac52a44236c72227c8778c Mon Sep 17 00:00:00 2001 From: Henry Jameson Date: Fri, 28 Aug 2026 21:19:33 +0300 Subject: [PATCH] cleanup --- src/components/who_to_follow/who_to_follow.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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) }) }) },