We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5674d5 commit 01094eaCopy full SHA for 01094ea
ui/components/multichain/asset-picker-amount/asset-picker-modal/hooks/useAssetMetadata.ts
@@ -1,5 +1,4 @@
1
import { CaipAssetType, CaipChainId, Hex } from '@metamask/utils';
2
-import { useEffect } from 'react';
3
import { useSelector } from 'react-redux';
4
import { getUseExternalServices } from '../../../../../selectors';
5
import {
@@ -26,13 +25,6 @@ export const useAssetMetadata = (
26
25
) => {
27
const allowExternalServices = useSelector(getUseExternalServices);
28
29
- useEffect(() => {
30
- return () => {
31
- abortControllerRef.current?.abort();
32
- abortControllerRef.current = null;
33
- };
34
- }, [abortControllerRef]);
35
-
36
const { value: assetMetadata } = useAsyncResult<
37
| {
38
address: Hex | CaipAssetType | string;
0 commit comments