diff --git a/packages/frontend/src/components/MkAccountMoved.vue b/packages/frontend/src/components/MkAccountMoved.vue index 594e5ab7e..1349df7bf 100644 --- a/packages/frontend/src/components/MkAccountMoved.vue +++ b/packages/frontend/src/components/MkAccountMoved.vue @@ -27,7 +27,11 @@ const props = defineProps<{ movedFrom?: string; // user id }>(); -misskeyApi('users/show', { userId: props.movedTo ?? props.movedFrom }).then(u => user.value = u); +if (props.movedTo || props.movedFrom) { + misskeyApi('users/show', { + userId: props.movedTo ?? props.movedFrom + }).then(u => user.value = u); +}