File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ import { useActiveWeb3React } from '@/hooks/user/index'
22
22
import { useAddNotif } from '@/state/notifs/hooks'
23
23
import { STABLECOINS } from '@/constants/index'
24
24
import { optionAddresses } from '@/constants/options'
25
+ import { testAddresses } from '../../constants/options'
25
26
const { ChainId } = SushiSwapSDK
26
27
27
28
export const useOptions = ( ) : OptionsState => {
@@ -71,9 +72,12 @@ export const useUpdateOptions = (): ((
71
72
assetName === '' || assetName === 'WETH'
72
73
? 'eth'
73
74
: assetName . toLowerCase ( )
74
- const testAddresses = TEST_OPTIONS [ key ] [ chainId ] ?. map (
75
- ( option ) => option . address
76
- )
75
+ let testAddresses
76
+ if ( TEST_OPTIONS [ key ] ) {
77
+ testAddresses = TEST_OPTIONS [ key ] [ chainId ] ?. map (
78
+ ( option ) => option . address
79
+ )
80
+ }
77
81
Protocol . getOptionsUsingMultiCall (
78
82
chainId ,
79
83
isTestnet ? testAddresses : optionAddresses ,
You can’t perform that action at this time.
0 commit comments