Last updated condition fix
This commit is contained in:
@@ -43,7 +43,7 @@
|
|||||||
full: dayjs(photos[0].modified_on).format('MMM Do, YYYY'),
|
full: dayjs(photos[0].modified_on).format('MMM Do, YYYY'),
|
||||||
relative: dayjs().to(dayjs(photos[0].modified_on))
|
relative: dayjs().to(dayjs(photos[0].modified_on))
|
||||||
} : undefined
|
} : undefined
|
||||||
const lastUpdated = (photos.length) ? (dayjs(photos[0].modified_on).isBefore(dayjs().subtract(1, 'M'))) ? dateUpdated.full : dateUpdated.relative : undefined
|
const lastUpdated = (photos.length) ? ((dayjs(photos[0].modified_on).isBefore(dayjs().subtract(1, 'M'))) ? dateUpdated.full : dateUpdated.relative) : undefined
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<svelte:head>
|
<svelte:head>
|
||||||
|
|||||||
Reference in New Issue
Block a user