Skip to content

Commit

Permalink
upgrade cmp and commercial
Browse files Browse the repository at this point in the history
  • Loading branch information
vlkerag committed Mar 5, 2024
1 parent cef9ab0 commit 8a1d98c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 11 deletions.
4 changes: 3 additions & 1 deletion client/utilities/hooks/useConsent.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import type { CountryCode } from '@guardian/libs';
import { useEffect } from 'react';
import { getGeoLocation } from '../geolocation';

Expand All @@ -7,7 +8,8 @@ export const useConsent = () => {
cmp.init({
// Default to GB so it works when no geolocation
// cookie is present (eg. local development)
country: getGeoLocation() ?? 'GB',
country:
(getGeoLocation() as CountryCode) ?? ('GB' as CountryCode),
});
});
}, []);
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@
"@emotion/react": "11.11.1",
"@guardian/ab-core": "2.0.0",
"@guardian/ab-react": "2.0.1",
"@guardian/commercial": "16.0.0",
"@guardian/consent-management-platform": "13.11.1",
"@guardian/commercial": "17.1.1",
"@guardian/consent-management-platform": "13.12.0",
"@guardian/libs": "15.9.1",
"@guardian/source-foundations": "13.2.0",
"@guardian/source-react-components": "16.0.1",
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2932,10 +2932,10 @@
resolved "https://registry.yarnpkg.com/@guardian/ab-react/-/ab-react-2.0.1.tgz#f018898de584c8e70a48e69ec9e499e08f512cc5"
integrity sha512-iOKbIxoLwRMv2eHddxL5l9mNBy/B9QaOOJgA3VUdo/jH5cUVzbF6W8yYDGcZJTolIVhSu5GPR8fitsOoup6Vww==

"@guardian/commercial@16.0.0":
version "16.0.0"
resolved "https://registry.yarnpkg.com/@guardian/commercial/-/commercial-16.0.0.tgz#e46cd939ee0f98d84bfc21124f93d4b2d6b041e5"
integrity sha512-nR6vBM7Bu5E49m4vWMeeTg1fsM/hsiTKY32r/R3YlMMYbYf2OBk/ExZg+EwMiXA11Z6euUriutSKEiQQ10LdTw==
"@guardian/commercial@17.1.1":
version "17.1.1"
resolved "https://registry.yarnpkg.com/@guardian/commercial/-/commercial-17.1.1.tgz#ff98beb2435ba0882ea486b38a8873c3229ae173"
integrity sha512-DQkiX3lalNSqIj/u3tghxFBElJ/xv8+feV6fxveQhUwnPMYw8vOCIg1QZoPcyl0eDgwbl7JubK4MOccX+5AhGA==
dependencies:
"@changesets/cli" "^2.26.2"
"@guardian/ophan-tracker-js" "2.0.4"
Expand All @@ -2949,10 +2949,10 @@
web-vitals "^3.3.2"
wolfy87-eventemitter "^5.2.9"

"@guardian/consent-management-platform@13.11.1":
version "13.11.1"
resolved "https://registry.yarnpkg.com/@guardian/consent-management-platform/-/consent-management-platform-13.11.1.tgz#dac49f3920238e60251fa5b7705c9ada9e12a882"
integrity sha512-cU9ssmMVV6EpX7H9QVAf0gdPrIdrGkvi/5ylGXF6xGvyvJ6CwUxM+vZhhm5tujoCiq6EuAVJX1tiZ3oHQMEdZg==
"@guardian/consent-management-platform@13.12.0":
version "13.12.0"
resolved "https://registry.yarnpkg.com/@guardian/consent-management-platform/-/consent-management-platform-13.12.0.tgz#7cd52881ac017eca8697b368c313678664acc10e"
integrity sha512-weLk3tR1ZtMvn5tfTFItvbIT84JFaXMdP5zcbu1Aynt+eTKZD8oVKTtuvdg6ZmTuxsEOIfsel0fFirjDUo5ccQ==

"@guardian/eslint-config-typescript@9.0.2":
version "9.0.2"
Expand Down

0 comments on commit 8a1d98c

Please sign in to comment.