Skip to content

Commit

Permalink
bugfix: get-match-users returned users filter
Browse files Browse the repository at this point in the history
  • Loading branch information
Stepasha419a committed Aug 30, 2024
1 parent cbd16e2 commit 95300f5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/entities/user/model/tinder/tinder.slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,11 @@ const tinderSlice = createSlice({
state.isFailed = true;
}

const tinderUserIds = state.tinderUsers.map((user) => user.id);
const allUserIds = state.tinderUsers
.map((user) => user.id)
.concat(state.pendingUserIds);
const withNoJustReturned = payload.filter(
(user) => !tinderUserIds.includes(user.id)
(user) => !allUserIds.includes(user.id)
);

state.isLoading = false;
Expand Down

0 comments on commit 95300f5

Please sign in to comment.