feat: 🎸 Modified used for child overview as well
This commit is contained in:
parent
9efef8dad9
commit
0ad8bfe15c
|
@ -56,9 +56,10 @@ export const ChildListItem = ({ child, color }: ChildListItemProps) => {
|
|||
dateCreated ? moment(dateCreated).isSame(moment(), 'week') : false
|
||||
)
|
||||
|
||||
const newsThisWeek = news.filter(({ published }) =>
|
||||
published ? moment(published).isSame(moment(), 'week') : false
|
||||
)
|
||||
const newsThisWeek = news.filter(({ modified, published }) => {
|
||||
const date = modified || published
|
||||
return date ? moment(date).isSame(moment(), 'week') : false
|
||||
})
|
||||
|
||||
const scheduleAndCalendarThisWeek = [
|
||||
...(calendar ?? []),
|
||||
|
|
Loading…
Reference in New Issue