Skip to content

Commit 1be930d

Browse files
committed
clean up
1 parent e342531 commit 1be930d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

app/src/components/buttons/AbstractButton.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ export default function AbstractButton({
4343

4444
const handlePress = (e: any) => {
4545
if (trackEvent) {
46+
// attempt to hide the event category
47+
trackEvent = trackEvent.split(':')[1].trim() ?? trackEvent;
4648
analyticsTrackEvent(`Click: ${trackEvent}`);
4749
}
4850
if (onPress) {

app/src/consts/analytics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ export const BackupEvents = {
105105
'Backup: Cloud Restore Failed: Passport Not Registered',
106106
CLOUD_RESTORE_FAILED_UNKNOWN: 'Backup: Cloud Restore Failed: Unknown Error',
107107
CLOUD_RESTORE_SUCCESS: 'Backup: Cloud Restore Success',
108-
MANUAL_RECOVERY_SELECTED: 'Backup: Manual Recovery Selected',
109108
CREATE_NEW_ACCOUNT: 'Backup: Create New Account',
109+
MANUAL_RECOVERY_SELECTED: 'Backup: Manual Recovery Selected',
110110
};
111111

112112
export const MockDataEvents = {

0 commit comments

Comments
 (0)