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; } }