Skip to content

Commit 01094ea

Browse files
committed
Remove unnecessary cleanup
1 parent f5674d5 commit 01094ea

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

ui/components/multichain/asset-picker-amount/asset-picker-modal/hooks/useAssetMetadata.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { CaipAssetType, CaipChainId, Hex } from '@metamask/utils';
2-
import { useEffect } from 'react';
32
import { useSelector } from 'react-redux';
43
import { getUseExternalServices } from '../../../../../selectors';
54
import {
@@ -26,13 +25,6 @@ export const useAssetMetadata = (
2625
) => {
2726
const allowExternalServices = useSelector(getUseExternalServices);
2827

29-
useEffect(() => {
30-
return () => {
31-
abortControllerRef.current?.abort();
32-
abortControllerRef.current = null;
33-
};
34-
}, [abortControllerRef]);
35-
3628
const { value: assetMetadata } = useAsyncResult<
3729
| {
3830
address: Hex | CaipAssetType | string;

0 commit comments

Comments
 (0)