From 73d338abae1c7007677e5da225bb5a609e45b13d Mon Sep 17 00:00:00 2001 From: Ilya Date: Sun, 29 Sep 2024 18:42:30 +0300 Subject: [PATCH] Fixed oauth methods display (#239) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Изменения Починил отображение методов входа оаутх. ## Детали реализации - Проверялось неправильное условие --- src/views/profile/ProfileEditAuthView.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/views/profile/ProfileEditAuthView.vue b/src/views/profile/ProfileEditAuthView.vue index a95ee926..06f6d86a 100644 --- a/src/views/profile/ProfileEditAuthView.vue +++ b/src/views/profile/ProfileEditAuthView.vue @@ -20,7 +20,7 @@ onMounted(async () => { profileStore.updateToken(history.state.token); delete history.state.token; } - if (!profileStore.authMethods) { + if (profileStore.authMethods?.length == 0) { AuthApi.getMe(['auth_methods']); } });