fix: missing ID photo date

This commit is contained in:
Nikola Ubavic 2022-03-01 12:57:35 +01:00
parent 7e9fd148f3
commit 31c57d3a2c
4 changed files with 16 additions and 15 deletions

View file

@ -38,19 +38,17 @@ const PhotosCarousel = memo(({ photosData, timezone }) => {
)}
<div className={classes.secondRow}>
<div>
{photosData[currentIndex].date && (
<>
<Label>Date</Label>
<div>
{photosData &&
formatDate(
photosData[currentIndex]?.date,
timezone,
'yyyy-MM-dd HH:mm'
)}
</div>
</>
)}
<>
<Label>Date</Label>
<div>
{photosData &&
formatDate(
photosData[currentIndex]?.date,
timezone,
'yyyy-MM-dd HH:mm'
)}
</div>
</>
</div>
<div>
<Label>Taken by</Label>