Skip to content

Commit d1f5b23

Browse files
committed
fix: use nullish coalescing for banner color to handle empty string correctly
1 parent c5b4c1c commit d1f5b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/header/header.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export class HeaderComponent implements OnInit, OnDestroy {
4646

4747
// Reactive banner values - update when config changes
4848
public envName = computed(() => this.configService.config().ENVIRONMENT || 'local');
49-
public bannerColour = computed(() => this.configService.config().BANNER_COLOUR || 'red');
49+
public bannerColour = computed(() => this.configService.config().BANNER_COLOUR ?? 'red');
5050
public showBanner = computed(() => {
5151
const env = this.envName();
5252
const colour = this.bannerColour();

0 commit comments

Comments
 (0)