1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-03 05:36:16 +02:00
This commit is contained in:
syuilo
2023-02-22 15:36:12 +09:00
parent 0fb9c372dd
commit 0c8d874e3a
2 changed files with 2 additions and 2 deletions

View File

@@ -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;
}