File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,9 @@ import { BigNumber } from 'bignumber.js';
11
11
import { calcTokenAmount } from '@metamask/notification-services-controller/push-services' ;
12
12
import {
13
13
MultichainNetworks ,
14
+ ///: BEGIN:ONLY_INCLUDE_IF(solana-swaps)
14
15
MULTICHAIN_PROVIDER_CONFIGS ,
16
+ ///: END:ONLY_INCLUDE_IF
15
17
} from '../../../shared/constants/multichain/networks' ;
16
18
import {
17
19
getIsBridgeEnabled ,
Original file line number Diff line number Diff line change 1
1
import { useEffect } from 'react' ;
2
2
import { useDispatch , useSelector } from 'react-redux' ;
3
+ import { isStrictHexString } from '@metamask/utils' ;
3
4
import {
4
5
getBridgeQuotes ,
5
6
getQuoteRequest ,
@@ -43,7 +44,7 @@ export const useBridgeExchangeRates = () => {
43
44
44
45
// Fetch exchange rates for selected src token if not found in marketData
45
46
useEffect ( ( ) => {
46
- if ( fromChainId && fromTokenAddress ) {
47
+ if ( fromChainId && fromTokenAddress && isStrictHexString ( fromChainId ) ) {
47
48
const exchangeRate = exchangeRateFromMarketData (
48
49
fromChainId ,
49
50
fromTokenAddress ,
You can’t perform that action at this time.
0 commit comments