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']); } });