Skip to content

Commit

Permalink
chore: use find
Browse files Browse the repository at this point in the history
  • Loading branch information
blushi committed Sep 26, 2024
1 parent 26ff325 commit 9c490bf
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -301,9 +301,9 @@ export const getCardSellOrders = (
) =>
sanityFiatSellOrders
?.map(fiatOrder => {
const sellOrder = sellOrders.filter(
const sellOrder = sellOrders.find(
cryptoOrder => cryptoOrder.id.toString() === fiatOrder?.sellOrderId,
)?.[0];
);
if (sellOrder) {
return {
...fiatOrder,
Expand Down

0 comments on commit 9c490bf

Please sign in to comment.