Skip to content

Commit a114d06

Browse files
committed
remove console log
1 parent 51bbb15 commit a114d06

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/hooks/useTransactionHistory.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -246,16 +246,18 @@ export const useTransactionHistory = ({ isFilterActive }: { isFilterActive: bool
246246
srcToken = await erc20Service
247247
.getTokenInfo(order.sellToken, chainId)
248248
.then((token) => ({ ...token, underlyingAsset: token.address }))
249-
.catch(() => undefined);
249+
.catch(() => {
250+
console.error('Error fetching custom token', order.sellToken);
251+
return undefined;
252+
});
250253
}
251254

252255
if (!destToken && erc20Service) {
253-
console.log('Fetching custom token', order.buyToken);
254256
destToken = await erc20Service
255257
.getTokenInfo(order.buyToken, chainId)
256258
.then((token) => ({ ...token, underlyingAsset: token.address }))
257259
.catch(() => {
258-
console.log('Error fetching custom token', order.buyToken);
260+
console.error('Error fetching custom token', order.buyToken);
259261
return undefined;
260262
});
261263
}

0 commit comments

Comments
 (0)