Skip to content

Commit 12a96a8

Browse files
committed
clean-up as const
1 parent 6d0f2bc commit 12a96a8

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
@@ -779,7 +779,7 @@ export class ReplayContainer implements ReplayContainerInterface {
779779
*/
780780
private _handleWindowBlur: () => void = () => {
781781
const breadcrumb = createBreadcrumb({
782-
category: 'ui.blur' as const,
782+
category: 'ui.blur',
783783
});
784784

785785
// Do not count blur as a user action -- it's part of the process of them
@@ -792,7 +792,7 @@ export class ReplayContainer implements ReplayContainerInterface {
792792
*/
793793
private _handleWindowFocus: () => void = () => {
794794
const breadcrumb = createBreadcrumb({
795-
category: 'ui.focus' as const,
795+
category: 'ui.focus',
796796
});
797797

798798
// Do not count focus as a user action -- instead wait until they focus and
@@ -1095,7 +1095,7 @@ export class ReplayContainer implements ReplayContainerInterface {
10951095
// We can show this in the UI as an information with potential performance improvements
10961096
if (count > mutationBreadcrumbLimit || overMutationLimit) {
10971097
const breadcrumb = createBreadcrumb({
1098-
category: 'replay.mutations' as const,
1098+
category: 'replay.mutations',
10991099
data: {
11001100
count,
11011101
limit: overMutationLimit,

0 commit comments

Comments
 (0)