Skip to content

Commit

Permalink
Minor fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksym Pryhoda committed Aug 17, 2023
1 parent 04347e0 commit 5005a1a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/modules/offer/offer.utils/filter-offers.util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@ export const filterOffers = (props: FilterOffersProps) => {
}

if (isBoolean(isApproved)) {
offers = offers.filter(
({ isApproved: offerIsApproved }) =>
Boolean(offerIsApproved) === isApproved,
);
offers = offers.filter((offer) => offer.isApproved === isApproved);
}

if (isArray(statuses)) {
Expand Down

0 comments on commit 5005a1a

Please sign in to comment.