Skip to content

Commit

Permalink
Fix bug with grouping all previous dreams
Browse files Browse the repository at this point in the history
  • Loading branch information
bombies committed Oct 28, 2023
1 parent 6f08b60 commit a977441
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ const PastDreamsContainer: FC = () => {

const groupedDreams = dayTimes.reduce<GroupedDreams>((previousValue, currentValue, i, arr) => {
const endDate = new Date(arr[i])
endDate.setHours(11, 59, 59, 999)
endDate.setHours(23, 59, 59, 999)

const dreams = filteredDreams.filter(dream => {
const dreamDate = new Date(dream.createdAt)
Expand Down

0 comments on commit a977441

Please sign in to comment.