Fix undefined title thjing

This commit is contained in:
shamoon committed 2026-10-18 22:26:46 -07:00
1 parent 9eb6619c7a
commit 4a0a7ccee7
2 files changed
+11 -1

No files matched your search

@@ -27,7 +27,10 @@ export class PageHeaderComponent {
constructor() {
effect(() => {
this.titleService.setTitle(`${this.title()} - ${environment.appTitle}`)
const title = this.title()
this.titleService.setTitle(
title ? `${title} - ${environment.appTitle}` : environment.appTitle
)
})
}