mirror of
https://github.com/etkecc/synapse-admin.git
synced 2024-11-21 23:35:22 +03:00
Fix user's display name in header on user's page
For example, erased users don't have display name, so header was `User "null"`. With this change, if there is no display name, the MXID will be show, e.g. `User "@user:example.com"`
This commit is contained in:
parent
dbcb4f92dc
commit
6bc760a6fa
1 changed files with 1 additions and 1 deletions
|
@ -184,7 +184,7 @@ const UserTitle = () => {
|
||||||
{translate("resources.users.name", {
|
{translate("resources.users.name", {
|
||||||
smart_count: 1,
|
smart_count: 1,
|
||||||
})}{" "}
|
})}{" "}
|
||||||
{record ? `"${record.displayname}"` : ""}
|
{record ? ( record.displayname ? `"${record.displayname}"` : `"${record.name}"`) : ""}
|
||||||
</span>
|
</span>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue