diff --git a/src/routes/location/[country]/[location].svelte b/src/routes/location/[country]/[location].svelte index eb6f0ef..0d687f9 100644 --- a/src/routes/location/[country]/[location].svelte +++ b/src/routes/location/[country]/[location].svelte @@ -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