Skip to content

Commit 3ad8b3d

Browse files
committed
clean-up as const
1 parent 62183ec commit 3ad8b3d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/replay/src/coreHandlers/handleSlowClick.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ function handleSlowClick(
101101
const breadcrumb = {
102102
message: clickBreadcrumb.message,
103103
timestamp: clickBreadcrumb.timestamp,
104-
category: 'ui.slowClickDetected' as const,
104+
category: 'ui.slowClickDetected',
105105
data: {
106106
...clickBreadcrumb.data,
107107
url: WINDOW.location.href,

packages/replay/src/replay.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ export class ReplayContainer implements ReplayContainerInterface {
748748
*/
749749
private _handleWindowBlur: () => void = () => {
750750
const breadcrumb = createBreadcrumb({
751-
category: 'ui.blur' as const,
751+
category: 'ui.blur',
752752
});
753753

754754
// Do not count blur as a user action -- it's part of the process of them
@@ -761,7 +761,7 @@ export class ReplayContainer implements ReplayContainerInterface {
761761
*/
762762
private _handleWindowFocus: () => void = () => {
763763
const breadcrumb = createBreadcrumb({
764-
category: 'ui.focus' as const,
764+
category: 'ui.focus',
765765
});
766766

767767
// Do not count focus as a user action -- instead wait until they focus and
@@ -1064,7 +1064,7 @@ export class ReplayContainer implements ReplayContainerInterface {
10641064
// We can show this in the UI as an information with potential performance improvements
10651065
if (count > mutationBreadcrumbLimit || overMutationLimit) {
10661066
const breadcrumb = createBreadcrumb({
1067-
category: 'replay.mutations' as const,
1067+
category: 'replay.mutations',
10681068
data: {
10691069
count,
10701070
limit: overMutationLimit,

0 commit comments

Comments
 (0)