Profile menu-bar name ignores lastName and empty firstName #1049

Closed
opened 2026-08-13 05:28:42 +00:00 by spikerj · 1 comment
Owner

ProfileService.notifyNameChanged(firstName, lastName?) takes lastName but never uses it:

this.userDisplayName.set(firstName || "Account");

Empty string also collapses to "Account". The menu-bar signal therefore never shows a surname, and a caller that passes ("", "Lovelace") looks logged-out.

Pinned by profile.service.http.spec.ts ("notifyNameChanged ignores lastName and falls back to Account").

`ProfileService.notifyNameChanged(firstName, lastName?)` takes `lastName` but never uses it: ```ts this.userDisplayName.set(firstName || "Account"); ``` Empty string also collapses to `"Account"`. The menu-bar signal therefore never shows a surname, and a caller that passes `("", "Lovelace")` looks logged-out. Pinned by `profile.service.http.spec.ts` ("notifyNameChanged ignores lastName and falls back to Account").
Author
Owner

Resolved in spikersoft-angular PR #819 (merged to master). Profile menu-bar name uses lastName and an empty-firstName fallback. Closing.

Resolved in spikersoft-angular [PR #819](https://git.spikersoft.com/spikerj/spikersoft-angular/pulls/819) (merged to `master`). Profile menu-bar name uses lastName and an empty-firstName fallback. Closing.
Sign in to join this conversation.