Skip to content

Commit

Permalink
fix: fix changes that were introduced in (#26807) but broken by 3e1094a
Browse files Browse the repository at this point in the history
… (#27435)

This PR correctly applies the changes from #26807 and #26924 to master.
These were broken, probably by careless human error, in 3e1094a

---------

Co-authored-by: Matteo Scurati <matteo.scurati@gmail.com>
  • Loading branch information
danjm and matteoscurati authored Sep 26, 2024
1 parent 7e88180 commit 5f93766
Show file tree
Hide file tree
Showing 7 changed files with 2 additions and 10 deletions.
2 changes: 0 additions & 2 deletions app/scripts/metamask-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -1488,8 +1488,6 @@ export default class MetamaskController extends EventEmitter {
notification_id: notification.id,
notification_type: notification.type,
chain_id: notification?.chain_id,
notification_is_read: notification.isRead,
click_type: 'push_notification',
},
});
},
Expand Down
1 change: 0 additions & 1 deletion test/e2e/tests/metrics/nft-detection-metrics.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ describe('Nft detection event @no-mmi', function () {
chain_id: '0x539',
environment_type: 'fullscreen',
is_profile_syncing_enabled: null,
is_signed_in: false,
});
assert.deepStrictEqual(events[2].properties, {
nft_autodetection_enabled: true,
Expand Down
1 change: 0 additions & 1 deletion test/e2e/tests/metrics/token-detection-metrics.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ describe('Token detection event @no-mmi', function () {
chain_id: '0x539',
environment_type: 'fullscreen',
is_profile_syncing_enabled: null,
is_signed_in: false,
});
assert.deepStrictEqual(events[2].properties, {
token_detection_enabled: true,
Expand Down
1 change: 0 additions & 1 deletion test/e2e/tests/metrics/wallet-created.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ describe('Wallet Created Events @no-mmi', function () {
chain_id: '0x539',
environment_type: 'fullscreen',
is_profile_syncing_enabled: null,
is_signed_in: false,
});
},
);
Expand Down
1 change: 1 addition & 0 deletions ui/components/multichain/global-menu/global-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ export const GlobalMenu = ({ closeMenu, anchorElement, isOpen }) => {

if (shouldShowEnableModal) {
trackEvent({
category: MetaMetricsEventCategory.NotificationsActivationFlow,
event: MetaMetricsEventName.NotificationsActivated,
properties: {
action_type: 'started',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const NotificationDetailButton = ({
const onClick = () => {
trackEvent({
category: MetaMetricsEventCategory.NotificationInteraction,
event: MetaMetricsEventName.NotificationClicked,
event: MetaMetricsEventName.NotificationDetailClicked,
properties: {
notification_id: notification.id,
notification_type: notification.type,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import {
import { MetaMetricsContext } from '../../../contexts/metametrics';
import { useCreateSession } from '../../../hooks/metamask-notifications/useCreateSession';
import { selectIsProfileSyncingEnabled } from '../../../selectors/metamask-notifications/profile-syncing';
import { selectIsSignedIn } from '../../../selectors/metamask-notifications/authentication';

export default function CreationSuccessful() {
const history = useHistory();
Expand All @@ -37,8 +36,6 @@ export default function CreationSuccessful() {

const isProfileSyncingEnabled = useSelector(selectIsProfileSyncingEnabled);

const isSignedIn = useSelector(selectIsSignedIn);

return (
<div className="creation-successful" data-testid="creation-successful">
<Box textAlign={TextAlign.Center}>
Expand Down Expand Up @@ -118,7 +115,6 @@ export default function CreationSuccessful() {
event: MetaMetricsEventName.OnboardingWalletCreationComplete,
properties: {
method: firstTimeFlowType,
is_signed_in: isSignedIn,
is_profile_syncing_enabled: isProfileSyncingEnabled,
},
});
Expand Down

0 comments on commit 5f93766

Please sign in to comment.