Skip to content

Commit 4fb546e

Browse files
authored
fix: [lw-11763] remove duplicated confirm tx event for hw (#1497)
1 parent 01e9ff9 commit 4fb546e

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

packages/nami/src/ui/app/components/confirmModal.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ import { MdUsb } from 'react-icons/md';
2424
import { ERROR } from '../../../config/config';
2525

2626
import type { PasswordObj as Password } from '@lace/core';
27-
import { useCaptureEvent } from '../../../features/analytics/hooks';
28-
import { Events } from '../../../features/analytics/events';
2927

3028
interface Props {
3129
ready?: boolean;
@@ -277,7 +275,6 @@ const ConfirmModalHw = ({
277275
}: Readonly<ConfirmModalHwProps>) => {
278276
const [waitReady, setWaitReady] = React.useState(true);
279277
const [error, setError] = React.useState('');
280-
const capture = useCaptureEvent();
281278

282279
const confirmHandler = async () => {
283280
if (
@@ -303,7 +300,6 @@ const ConfirmModalHw = ({
303300
try {
304301
await props.sign();
305302
await props.onConfirm(true);
306-
capture(Events.SendTransactionConfirmed);
307303
} catch (error_) {
308304
console.error(error_);
309305
if (error_ === ERROR.submit) props.onConfirm(false, error_);

0 commit comments

Comments
 (0)