Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
OGPoyraz committed Jul 9, 2024
1 parent d68e2e5 commit 8d0cd62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion ui/hooks/useNftCollectionsMetadata.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { renderHook } from '@testing-library/react-hooks';
import { NameType } from '@metamask/name-controller';
import { getCurrentChainId } from '../selectors';
import { fetchNftCollectionsMetadata } from '../store/actions';
import { useNftCollectionsMetadata } from './useNftCollectionsMetadata';
Expand Down
4 changes: 2 additions & 2 deletions ui/hooks/useNftCollectionsMetadata.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ export function useNftCollectionsMetadata(
useEffect(() => {
const fetchCollections = async () => {
try {
const collectionsMetadata = await fetchNftCollectionsMetadata(
const collectionsResult = await fetchNftCollectionsMetadata(
memoisedContracts,
chainId,
);

const collectionsData: CollectionsData =
collectionsMetadata.collections.reduce(
collectionsResult.collections.reduce(
(acc: CollectionsData, collection) => {
// This cast is necessary because the id is set as optional string in the Collection type
const collectionKey = (collection.id as string).toLowerCase();
Expand Down

0 comments on commit 8d0cd62

Please sign in to comment.