From 80f264ad4ac88ed589ad15719027a1b475c4b789 Mon Sep 17 00:00:00 2001 From: httpjunkie Date: Wed, 18 Dec 2024 17:13:47 -0500 Subject: [PATCH] feat: update how we check for transaction confirmations --- .../smart-transactions-banner-alert.tsx | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/ui/pages/confirmations/components/smart-transactions-banner-alert/smart-transactions-banner-alert.tsx b/ui/pages/confirmations/components/smart-transactions-banner-alert/smart-transactions-banner-alert.tsx index 0445b0dc44b0..9747a300996a 100644 --- a/ui/pages/confirmations/components/smart-transactions-banner-alert/smart-transactions-banner-alert.tsx +++ b/ui/pages/confirmations/components/smart-transactions-banner-alert/smart-transactions-banner-alert.tsx @@ -1,5 +1,6 @@ import React, { useCallback } from 'react'; import { useSelector, useDispatch } from 'react-redux'; +import { TransactionType } from '@metamask/transaction-controller'; import { useI18nContext } from '../../../../hooks/useI18nContext'; import { BannerAlert, @@ -12,6 +13,7 @@ import { AlertTypes } from '../../../../../shared/constants/alerts'; import { SMART_TRANSACTIONS_LEARN_MORE_URL } from '../../../../../shared/constants/smartTransactions'; import { FontWeight } from '../../../../helpers/constants/design-system'; import { useConfirmContext } from '../../context/confirm'; +import { isCorrectDeveloperTransactionType } from '../../../../../shared/lib/confirmation.utils'; type MarginType = 'default' | 'none' | 'noTop' | 'onlyTop'; @@ -95,13 +97,9 @@ export const SmartTransactionsBannerAlert: React.FC