Skip to content

Commit 89f9b7c

Browse files
committed
Catch failed to post tracking errors
1 parent f8f90fd commit 89f9b7c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/rotten-weeks-raise.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"thirdweb": patch
3+
---
4+
5+
Catch failed to post tracking errors to avoid exposing them to error report services

packages/thirdweb/src/analytics/track.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,5 +63,5 @@ function track(client: ThirdwebClient, data: object) {
6363
}
6464
return value;
6565
}),
66-
});
66+
}).catch(() => {});
6767
}

0 commit comments

Comments
 (0)