Skip to content

Commit 5493811

Browse files
committed
fix: lint issues
1 parent 3230b5a commit 5493811

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

ui/ducks/bridge/selectors.ts

+2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ import { BigNumber } from 'bignumber.js';
1111
import { calcTokenAmount } from '@metamask/notification-services-controller/push-services';
1212
import {
1313
MultichainNetworks,
14+
///: BEGIN:ONLY_INCLUDE_IF(solana-swaps)
1415
MULTICHAIN_PROVIDER_CONFIGS,
16+
///: END:ONLY_INCLUDE_IF
1517
} from '../../../shared/constants/multichain/networks';
1618
import {
1719
getIsBridgeEnabled,

ui/hooks/bridge/useBridgeExchangeRates.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useEffect } from 'react';
22
import { useDispatch, useSelector } from 'react-redux';
3+
import { isStrictHexString } from '@metamask/utils';
34
import {
45
getBridgeQuotes,
56
getQuoteRequest,
@@ -43,7 +44,7 @@ export const useBridgeExchangeRates = () => {
4344

4445
// Fetch exchange rates for selected src token if not found in marketData
4546
useEffect(() => {
46-
if (fromChainId && fromTokenAddress) {
47+
if (fromChainId && fromTokenAddress && isStrictHexString(fromChainId)) {
4748
const exchangeRate = exchangeRateFromMarketData(
4849
fromChainId,
4950
fromTokenAddress,

0 commit comments

Comments
 (0)