Skip to content

Commit

Permalink
Only display the first_name+last_name combination for the user views …
Browse files Browse the repository at this point in the history
…breadcrumb
  • Loading branch information
monsieurswag committed Apr 15, 2024
1 parent c76127a commit dc5b6f8
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions frontend/src/lib/components/Breadcrumbs/Breadcrumbs.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@
if (t === $breadcrumbObject.id) {
if ($breadcrumbObject.name) {
t = $breadcrumbObject.name;
} else if ($breadcrumbObject.first_name) {
t = $breadcrumbObject.first_name;
if ($breadcrumbObject.last_name) {
t = `${t} ${$breadcrumbObject.last_name}`;
}
} else if ($breadcrumbObject.first_name && $breadcrumbObject.last_name) {
t = `${$breadcrumbObject.first_name} ${$breadcrumbObject.last_name}`;
} else {
t = $breadcrumbObject.email;
}
Expand Down

0 comments on commit dc5b6f8

Please sign in to comment.