Skip to content

Commit

Permalink
refactor: check asset type with isNativeAddress instead of type property
Browse files Browse the repository at this point in the history
  • Loading branch information
bfullam committed Dec 20, 2024
1 parent 6510e14 commit 7a10d0c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ui/pages/bridge/prepare/bridge-input-group.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -234,7 +234,7 @@ export const BridgeInputGroup = ({
: undefined}
{onMaxButtonClick &&
token &&
token.type !== AssetType.native &&
!isNativeAddress(token.address) &&
balanceAmount && (
<ButtonLink
variant={TextVariant.bodyMd}
Expand Down

0 comments on commit 7a10d0c

Please sign in to comment.