Skip to content

Commit

Permalink
feat(suite): remove skip analytics, its part of DeviceSetupCompleted
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-sanderson committed Jun 5, 2024
1 parent dcc6524 commit f88405d
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 15 deletions.
1 change: 0 additions & 1 deletion packages/suite-analytics/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,5 +89,4 @@ export enum EventType {
T2B1DashboardPromo = 'promo/t2b1-dashboard',

OnboardingSelectBackupType = 'onboarding/select-backup-type',
OnboardingSkipStep = 'onboarding/skip-step',
}
6 changes: 0 additions & 6 deletions packages/suite-analytics/src/types/events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,4 @@ export type SuiteAnalyticsEvent =
device: string;
unitPackaging: number;
};
}
| {
type: EventType.OnboardingSkipStep;
payload: {
skippedStep: string;
};
};
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { Button } from '@trezor/components';
import { Translation, Modal } from 'src/components/suite';
import { useOnboarding } from 'src/hooks/suite';
import { typography } from '@trezor/theme';
import { EventType, analytics } from '@trezor/suite-analytics';

const Wrapper = styled.div`
display: flex;
Expand Down Expand Up @@ -48,13 +47,6 @@ export const SkipStepConfirmation = ({ onCancel }: SkipStepConfirmationProps) =>
}

const handleSkipStepConfirm = () => {
analytics.report({
type: EventType.OnboardingSkipStep,
payload: {
skippedStep: activeStepId,
},
});

goToNextStep(nextStep);
};

Expand Down

0 comments on commit f88405d

Please sign in to comment.