From 22fec027de921ea2f0b4c0493507e20d54dc30f4 Mon Sep 17 00:00:00 2001 From: aswathy-deriv Date: Wed, 11 Sep 2024 11:55:41 +0400 Subject: [PATCH 1/2] fix: removed the country properties used two times --- src/analytics.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/analytics.ts b/src/analytics.ts index 54851f3..e4f8ae6 100644 --- a/src/analytics.ts +++ b/src/analytics.ts @@ -42,7 +42,7 @@ export function createAnalyticsInstance(options?: Options) { if (growthbookOptions?.attributes && Object.keys(growthbookOptions.attributes).length > 0) core_data = { ...core_data, - ...(growthbookOptions?.attributes?.country && { country: growthbookOptions?.attributes.country }), + ...(growthbookOptions?.attributes?.user_language && { user_language: growthbookOptions?.attributes.user_language, }), From 2aa5c49cc7f991f5280acae841f82c6ce318b08d Mon Sep 17 00:00:00 2001 From: aswathy-deriv Date: Wed, 11 Sep 2024 11:57:31 +0400 Subject: [PATCH 2/2] fix: removed the space --- src/analytics.ts | 1 - 1 file changed, 1 deletion(-) diff --git a/src/analytics.ts b/src/analytics.ts index e4f8ae6..dcd4c39 100644 --- a/src/analytics.ts +++ b/src/analytics.ts @@ -42,7 +42,6 @@ export function createAnalyticsInstance(options?: Options) { if (growthbookOptions?.attributes && Object.keys(growthbookOptions.attributes).length > 0) core_data = { ...core_data, - ...(growthbookOptions?.attributes?.user_language && { user_language: growthbookOptions?.attributes.user_language, }),