Skip to content

Commit

Permalink
fix: typing on website status
Browse files Browse the repository at this point in the history
  • Loading branch information
amam-deriv committed Sep 9, 2024
1 parent 97128ae commit 9f40039
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export function createAnalyticsInstance(options?: Options) {
growthbookOptions.attributes.id ??= _rudderstack.getAnonymousId()
growthbookOptions.attributes.country ??=
Cookies.get('clients_country') ||
Cookies.getJSON('website_status')?.clients_country ||
(Cookies.get('website_status') as { clients_country?: string })?.clients_country ||
CloudflareCountry

if (growthbookKey) {
Expand Down

0 comments on commit 9f40039

Please sign in to comment.