mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-24 17:24:14 +02:00
refactor
This commit is contained in:
@@ -12,7 +12,7 @@ export async function lookupUser() {
|
||||
const { canceled, result } = await os.inputText({
|
||||
title: i18n.ts.usernameOrUserId,
|
||||
});
|
||||
if (canceled) return;
|
||||
if (canceled || result == null) return;
|
||||
|
||||
const show = (user) => {
|
||||
os.pageWindow(`/admin/user/${user.id}`);
|
||||
@@ -46,7 +46,7 @@ export async function lookupUserByEmail() {
|
||||
title: i18n.ts.emailAddress,
|
||||
type: 'email',
|
||||
});
|
||||
if (canceled) return;
|
||||
if (canceled || result == null) return;
|
||||
|
||||
try {
|
||||
const user = await os.apiWithDialog('admin/accounts/find-by-email', { email: result });
|
||||
|
||||
Reference in New Issue
Block a user