From a9550aa18c265fc3b1dbb943d877529c29e60495 Mon Sep 17 00:00:00 2001 From: Even Stensberg Date: Thu, 18 Jul 2024 19:58:49 +0200 Subject: [PATCH] fix(web-components): extra check to default --- .../ic-classification-banner/ic-classification-banner.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/web-components/src/components/ic-classification-banner/ic-classification-banner.tsx b/packages/web-components/src/components/ic-classification-banner/ic-classification-banner.tsx index dc429a579a..b9f9339649 100644 --- a/packages/web-components/src/components/ic-classification-banner/ic-classification-banner.tsx +++ b/packages/web-components/src/components/ic-classification-banner/ic-classification-banner.tsx @@ -37,7 +37,10 @@ export class ClassificationBanner { @Prop() upTo?: boolean = false; render() { - const { classification, inline, country, upTo, additionalSelectors } = this; + const { classification, inline, upTo } = this; + let { country, additionalSelectors } = this; + if(!country) country = "uk"; + if(!additionalSelectors) additionalSelectors = ""; return (