Last updated condition fix
This commit is contained in:
@@ -43,7 +43,7 @@
|
||||
full: dayjs(photos[0].modified_on).format('MMM Do, YYYY'),
|
||||
relative: dayjs().to(dayjs(photos[0].modified_on))
|
||||
} : 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>
|
||||
|
||||
<svelte:head>
|
||||
|
||||
Reference in New Issue
Block a user