mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-03 05:36:16 +02:00
lint
This commit is contained in:
@@ -1,3 +1,3 @@
|
||||
export default function(user: { name?: string | null, username: string }): string {
|
||||
return user.name || user.username;
|
||||
return user.name === '' ? user.username : user.name ?? user.username;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user