Apply suggestions from code review

Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
かっこかり 2024-01-26 22:36:22 +09:00 committed by GitHub
parent c19710ec0a
commit 65e47d84e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -170,11 +170,11 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter
action: () => {
copyToClipboard(`${user.host ?? host}/@${user.username}.atom`);
},
}, ...(user.host !== null && user.url !== null ? [{
}, ...(user.host != null && user.url != null ? [{
icon: 'ti ti-external-link',
text: i18n.ts.showOnRemote,
action: () => {
if (user.url === null) return;
if (user.url == null) return;
window.open(user.url, '_blank', 'noopener');
},
}] : []), {