From 9aeb22cb0603c233473acb7ee257b7f9c4fafa39 Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Tue, 15 Sep 2026 21:47:16 +0200 Subject: [PATCH] Add support for country codes to entity logo component --- libs/ui/src/lib/entity-logo/entity-logo.component.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/libs/ui/src/lib/entity-logo/entity-logo.component.ts b/libs/ui/src/lib/entity-logo/entity-logo.component.ts index 70a44e824d..bbfa57e229 100644 --- a/libs/ui/src/lib/entity-logo/entity-logo.component.ts +++ b/libs/ui/src/lib/entity-logo/entity-logo.component.ts @@ -36,19 +36,19 @@ export class GfEntityLogoComponent implements OnChanges { ) {} public ngOnChanges() { + this.emojiFlag = ''; this.hasError = false; + this.src = undefined; - this.emojiFlag = getEmojiFlag(this.countryCode); - - if (this.dataSource && this.symbol) { + if (this.countryCode) { + this.emojiFlag = getEmojiFlag(this.countryCode); + } else if (this.dataSource && this.symbol) { this.src = this.imageSourceService.getLogoUrlByAssetProfileIdentifier({ dataSource: this.dataSource, symbol: this.symbol }); } else if (this.url) { this.src = this.imageSourceService.getLogoUrlByUrl(this.url); - } else { - this.src = undefined; } }