Skip to content

Commit

Permalink
fix: Homepage type filters did the same for every type (#709)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinszuchet authored Dec 10, 2024
1 parent 39cc4a3 commit 6ecfbfb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useListEventsFiltered.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export default function useListEventsFiltered(

events = events.filter((event) => {
if (type === EventType.One) {
return event.duration <= Time.Day
return event.duration <= Time.Day && !event.recurrent
} else {
return event.duration > Time.Day || event.recurrent
}
Expand Down

0 comments on commit 6ecfbfb

Please sign in to comment.