fix: username fallback when there's no full name

This commit is contained in:
Jonathan Capps 2025-04-18 17:09:30 +01:00 committed by Michael Murphy
parent 44ad521ab0
commit 4bbd9c4856

View file

@ -745,7 +745,7 @@ fn user_list() -> Section<crate::pages::Message> {
.on_input(move |name| Message::Edit(idx, EditorField::FullName, name))
.on_submit(move |_| Message::ApplyEdit(idx, EditorField::FullName));
let fullname_text = text::body(if &user.full_name != "" {
let fullname_text = text::body(if user.full_name != "" {
&user.full_name
} else {
&user.username