routing fixes
This commit is contained in:
parent
0cc1069526
commit
a490471e4f
5 changed files with 37 additions and 57 deletions
|
|
@ -168,14 +168,14 @@ export default function SettingsSubmit({ initialTarget }: { initialTarget?: Targ
|
|||
};
|
||||
}, []);
|
||||
|
||||
// Prefer username; then email; then names/display; lastly short id
|
||||
// Prefer username; then display_name; then full name; then email.
|
||||
const meLabel =
|
||||
(me?.username && me.username.trim()) ||
|
||||
(me?.email && me.email.trim()) ||
|
||||
([me?.first_name, me?.last_name].filter(Boolean).join(" ").trim()) ||
|
||||
(me?.display_name && me.display_name.trim()) ||
|
||||
(me?.id && `User ${shortId(me.id)}`) ||
|
||||
"Unknown user";
|
||||
([me?.first_name, me?.last_name].filter(Boolean).join(" ").trim()) ||
|
||||
(me?.email && me.email.trim()) ||
|
||||
"";
|
||||
|
||||
|
||||
// Options
|
||||
const mats = useOptions("material");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue