diff --git a/packages/frontend/src/components/MkSignin.vue b/packages/frontend/src/components/MkSignin.vue index 9813774da3..2ac5c41964 100644 --- a/packages/frontend/src/components/MkSignin.vue +++ b/packages/frontend/src/components/MkSignin.vue @@ -107,12 +107,17 @@ const props = withDefaults(defineProps<{ }); function onUsernameChange(): void { + const usernameRequested = username.value; misskeyApi('users/show', { - username: username.value, + username: usernameRequested, }).then(userResponse => { - user.value = userResponse; + if (userResponse.username === username.value) { + user.value = userResponse; + } }, () => { - user.value = null; + if (usernameRequested === username.value) { + user.value = null; + } }); }