From 679e2b1995a04a802be5110476f51fc092ccbcee Mon Sep 17 00:00:00 2001 From: Eric Bailey Date: Thu, 6 Mar 2025 14:03:47 -0600 Subject: [PATCH] Fix conflicting types --- src/logger/metrics.ts | 4 ++-- src/view/screens/ProfileList.tsx | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/logger/metrics.ts b/src/logger/metrics.ts index f741dafde3..abb7b670fa 100644 --- a/src/logger/metrics.ts +++ b/src/logger/metrics.ts @@ -313,10 +313,10 @@ export type MetricEvents = { } 'moderation:subscribedToList': { - type: 'mute' | 'block' + listType: 'mute' | 'block' } 'moderation:unsubscribedFromList': { - type: 'mute' | 'block' + listType: 'mute' | 'block' } 'reportDialog:open': { diff --git a/src/view/screens/ProfileList.tsx b/src/view/screens/ProfileList.tsx index ab313771de..a3a44b5d8a 100644 --- a/src/view/screens/ProfileList.tsx +++ b/src/view/screens/ProfileList.tsx @@ -404,7 +404,7 @@ function Header({ Toast.show(_(msg`List muted`)) logger.metric( 'moderation:subscribedToList', - {type: 'mute'}, + {listType: 'mute'}, {statsig: true}, ) }, [list, listMuteMutation, _]) @@ -424,7 +424,7 @@ function Header({ Toast.show(_(msg`List unmuted`)) logger.metric( 'moderation:unsubscribedFromList', - {type: 'mute'}, + {listType: 'mute'}, {statsig: true}, ) }, [list, listMuteMutation, _]) @@ -444,7 +444,7 @@ function Header({ Toast.show(_(msg`List blocked`)) logger.metric( 'moderation:subscribedToList', - {type: 'block'}, + {listType: 'block'}, {statsig: true}, ) }, [list, listBlockMutation, _]) @@ -464,7 +464,7 @@ function Header({ Toast.show(_(msg`List unblocked`)) logger.metric( 'moderation:unsubscribedFromList', - {type: 'block'}, + {listType: 'block'}, {statsig: true}, ) }, [list, listBlockMutation, _])