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
|
dateCreated ? moment(dateCreated).isSame(moment(), 'week') : false
|
||||||
)
|
)
|
||||||
|
|
||||||
const newsThisWeek = news.filter(({ published }) =>
|
const newsThisWeek = news.filter(({ modified, published }) => {
|
||||||
published ? moment(published).isSame(moment(), 'week') : false
|
const date = modified || published
|
||||||
)
|
return date ? moment(date).isSame(moment(), 'week') : false
|
||||||
|
})
|
||||||
|
|
||||||
const scheduleAndCalendarThisWeek = [
|
const scheduleAndCalendarThisWeek = [
|
||||||
...(calendar ?? []),
|
...(calendar ?? []),
|
||||||
|
|
Loading…
Reference in New Issue