Skip to content

Commit

Permalink
chore: removes unused @ts-expect-error comment (#941)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Kalow committed Apr 25, 2023
1 parent b4ac21a commit 855af8a
Show file tree
Hide file tree
Showing 6 changed files with 58 additions and 36 deletions.
5 changes: 5 additions & 0 deletions .changeset/big-planets-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hashicorp/react-marketo-form': patch
---

Updates @hashicorp/platform-analytics to address type errors.
5 changes: 5 additions & 0 deletions .changeset/nervous-pans-jam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@hashicorp/react-consent-manager': patch
---

Remove unused @ts-expect-error comment.
79 changes: 46 additions & 33 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"@hashicorp/platform-docs-mdx": "^0.2.0",
"@hashicorp/platform-nextjs-plugin": "^4.2.0",
"@hashicorp/platform-postcss-config": "^0.1.0",
"@hashicorp/platform-types": "^0.3.0",
"@hashicorp/platform-types": "^0.3.1",
"@hashicorp/platform-util": "0.1.0",
"@mdx-js/react": "^1.6.22",
"@octokit/core": "^3.5.1",
Expand Down
1 change: 0 additions & 1 deletion packages/consent-manager/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ export default function ConsentManager(props: ConsentManagerProps) {

// If analytics have already been added to page, it's likely you're updating your preferences
// We reload the page to re-initiate the script with the updated integrations
// @ts-expect-error -- initialized doesn't exist on the segment type?
if (window.analytics && window.analytics.initialized) {
window.location.reload()
return
Expand Down
2 changes: 1 addition & 1 deletion packages/marketo-form/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"Dylan Staley"
],
"dependencies": {
"@hashicorp/platform-analytics": "^0.10.0",
"@hashicorp/platform-analytics": "^0.11.2",
"@hashicorp/react-button": "^6.2.0",
"@hashicorp/react-form-fields": "^0.1.1",
"@vercel/fetch": "^6.2.0",
Expand Down

1 comment on commit 855af8a

@vercel
Copy link

@vercel vercel bot commented on 855af8a Apr 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.