Skip to content

Commit

Permalink
Fix GA through cookieconsent (MystenLabs#4002)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan-Mysten authored Aug 15, 2022
1 parent f39b716 commit f93f547
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,8 @@ export function CookiesConsent() {
transition: 'slide',
},
},
// @ts-expect-error no types
onAccept: function (cookie: {
level: ('necessary' | 'analytics')[];
}) {
if (cookie?.level?.includes('analytics')) {
onAccept(cookie) {
if (cookie.categories.includes('analytics')) {
loadAndEnableAnalytics();
}
},
Expand Down

0 comments on commit f93f547

Please sign in to comment.