Apply suggestions from code review
Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
This commit is contained in:
parent
c19710ec0a
commit
65e47d84e1
|
@ -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');
|
||||
},
|
||||
}] : []), {
|
||||
|
|
Loading…
Reference in New Issue