Skip to content

Commit

Permalink
fix: remove unnecessary promise
Browse files Browse the repository at this point in the history
  • Loading branch information
esaminu committed Jan 11, 2022
1 parent b26b917 commit 69fd5cd
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions packages/frontend/src/services/NonFungibleTokens.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default class NonFungibleTokens {
});
}
// TODO: Separate Redux action for loading image
tokens = await Promise.all(tokens.filter(({ metadata }) => !!metadata).map(async ({ metadata, ...token }) => {
return tokens.filter(({ metadata }) => !!metadata).map(({ metadata, ...token }) => {
const { media } = metadata;
let mediaUrl;
if (!media.includes('://')) {
Expand All @@ -69,9 +69,7 @@ export default class NonFungibleTokens {
mediaUrl
}
};
}));

return tokens;
});
}
}

Expand Down

0 comments on commit 69fd5cd

Please sign in to comment.