refactor(frontend): fix eslint error (#10084)

This commit is contained in:
Kagami Sascha Rosylight 2023-02-25 10:27:15 +01:00 committed by GitHub
parent ea04778649
commit 209d8b4f39
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -116,7 +116,7 @@ export function getUserMenu(user: misskey.entities.UserDetailed, router: Router
icon: 'ti ti-at', icon: 'ti ti-at',
text: i18n.ts.copyUsername, text: i18n.ts.copyUsername,
action: () => { action: () => {
copyToClipboard(`@${user.username}@${user.host || host}`); copyToClipboard(`@${user.username}@${user.host ?? host}`);
}, },
}, { }, {
icon: 'ti ti-info-circle', icon: 'ti ti-info-circle',