Skip to content

Commit

Permalink
Clean up code
Browse files Browse the repository at this point in the history
  • Loading branch information
eikhr committed Sep 26, 2024
1 parent 907cf30 commit 9dce054
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions app/reducers/registrations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ const legoAdapter = createLegoAdapter(EntityType.Registrations);

const registrationsSlice = createSlice({
name: EntityType.Registrations,
initialState: legoAdapter.getInitialState({
test: 1,
}),
initialState: legoAdapter.getInitialState(),
reducers: {},
extraReducers: legoAdapter.buildReducers({
extraCases: (addCase) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export const getWaitingListPosition = (
}
return applicablePools.map((pool) => {
const applicableWaitingListRegistrations = waitingList.registrations.filter(
(r) => isPermittedInPool(r.user, pool),
(registration) => isPermittedInPool(registration.user, pool),
);
return {
poolName: pool.name,
Expand Down

0 comments on commit 9dce054

Please sign in to comment.