From 7a10d0c149d7d42ef6d52dda4d61ecca326c7459 Mon Sep 17 00:00:00 2001 From: Bryan Fullam Date: Fri, 20 Dec 2024 10:04:10 -0800 Subject: [PATCH] refactor: check asset type with isNativeAddress instead of type property --- ui/pages/bridge/prepare/bridge-input-group.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/pages/bridge/prepare/bridge-input-group.tsx b/ui/pages/bridge/prepare/bridge-input-group.tsx index ac545fb834dd..ae524ab65110 100644 --- a/ui/pages/bridge/prepare/bridge-input-group.tsx +++ b/ui/pages/bridge/prepare/bridge-input-group.tsx @@ -15,7 +15,7 @@ import { TabName } from '../../../components/multichain/asset-picker-amount/asse import { useI18nContext } from '../../../hooks/useI18nContext'; import { getLocale } from '../../../selectors'; import { getCurrentCurrency } from '../../../ducks/metamask/metamask'; -import { formatCurrencyAmount, formatTokenAmount } from '../utils/quote'; +import { formatCurrencyAmount, formatTokenAmount, isNativeAddress } from '../utils/quote'; import { Column, Row } from '../layout'; import { Display, @@ -234,7 +234,7 @@ export const BridgeInputGroup = ({ : undefined} {onMaxButtonClick && token && - token.type !== AssetType.native && + !isNativeAddress(token.address) && balanceAmount && (