File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -246,16 +246,18 @@ export const useTransactionHistory = ({ isFilterActive }: { isFilterActive: bool
246
246
srcToken = await erc20Service
247
247
. getTokenInfo ( order . sellToken , chainId )
248
248
. then ( ( token ) => ( { ...token , underlyingAsset : token . address } ) )
249
- . catch ( ( ) => undefined ) ;
249
+ . catch ( ( ) => {
250
+ console . error ( 'Error fetching custom token' , order . sellToken ) ;
251
+ return undefined ;
252
+ } ) ;
250
253
}
251
254
252
255
if ( ! destToken && erc20Service ) {
253
- console . log ( 'Fetching custom token' , order . buyToken ) ;
254
256
destToken = await erc20Service
255
257
. getTokenInfo ( order . buyToken , chainId )
256
258
. then ( ( token ) => ( { ...token , underlyingAsset : token . address } ) )
257
259
. catch ( ( ) => {
258
- console . log ( 'Error fetching custom token' , order . buyToken ) ;
260
+ console . error ( 'Error fetching custom token' , order . buyToken ) ;
259
261
return undefined ;
260
262
} ) ;
261
263
}
You can’t perform that action at this time.
0 commit comments