diff --git a/src/components/new-safe/create/logic/index.ts b/src/components/new-safe/create/logic/index.ts index 6bb49eaece..61200dfda7 100644 --- a/src/components/new-safe/create/logic/index.ts +++ b/src/components/new-safe/create/logic/index.ts @@ -9,7 +9,7 @@ import type { ConnectedWallet } from '@/services/onboard' import { BigNumber } from '@ethersproject/bignumber' import { SafeCreationStatus } from '@/components/new-safe/create/steps/StatusStep/useSafeCreation' import { didRevert, type EthersError } from '@/utils/ethers-utils' -import { Errors, logError } from '@/services/exceptions' +import { Errors, trackError } from '@/services/exceptions' import { ErrorCode } from '@ethersproject/logger' import { isWalletRejection } from '@/utils/wallets' import type { PendingSafeTx } from '@/components/new-safe/create/types' @@ -167,7 +167,7 @@ export const pollSafeInfo = async (chainId: string, safeAddress: string): Promis } export const handleSafeCreationError = (error: EthersError) => { - logError(Errors._800, error.message) + trackError(Errors._800, error.message) if (isWalletRejection(error)) { return SafeCreationStatus.WALLET_REJECTED diff --git a/src/components/tx/SignOrExecuteForm/ExecuteForm.tsx b/src/components/tx/SignOrExecuteForm/ExecuteForm.tsx index 4c69eb5c92..3afcb8ca1e 100644 --- a/src/components/tx/SignOrExecuteForm/ExecuteForm.tsx +++ b/src/components/tx/SignOrExecuteForm/ExecuteForm.tsx @@ -3,7 +3,7 @@ import { Box, Button, CardActions, Divider } from '@mui/material' import classNames from 'classnames' import ErrorMessage from '@/components/tx/ErrorMessage' -import { logError, Errors } from '@/services/exceptions' +import { trackError, Errors } from '@/services/exceptions' import { useCurrentChain } from '@/hooks/useChains' import { getTxOptions } from '@/utils/transactions' import useIsValidExecution from '@/hooks/useIsValidExecution' @@ -93,7 +93,7 @@ const ExecuteForm = ({ setTxFlow(, undefined, false) } catch (_err) { const err = asError(_err) - logError(Errors._804, err) + trackError(Errors._804, err) setIsSubmittable(true) setSubmitError(err) return diff --git a/src/components/tx/SignOrExecuteForm/SignForm.tsx b/src/components/tx/SignOrExecuteForm/SignForm.tsx index 37ecffed1f..6368dbc9d7 100644 --- a/src/components/tx/SignOrExecuteForm/SignForm.tsx +++ b/src/components/tx/SignOrExecuteForm/SignForm.tsx @@ -2,7 +2,7 @@ import { type ReactElement, type SyntheticEvent, useContext, useState } from 're import { Box, Button, CardActions, Divider } from '@mui/material' import ErrorMessage from '@/components/tx/ErrorMessage' -import { logError, Errors } from '@/services/exceptions' +import { trackError, Errors } from '@/services/exceptions' import useIsSafeOwner from '@/hooks/useIsSafeOwner' import CheckWallet from '@/components/common/CheckWallet' import { useAlreadySigned, useTxActions } from './hooks' @@ -60,7 +60,7 @@ const SignForm = ({ await (isAddingToBatch ? addToBatch(safeTx, origin) : signTx(safeTx, txId, origin, tx)) } catch (_err) { const err = asError(_err) - logError(Errors._804, err) + trackError(Errors._804, err) setIsSubmittable(true) setSubmitError(err) return