diff --git a/new-lamassu-admin/src/pages/Customers/components/PhotosCard.js b/new-lamassu-admin/src/pages/Customers/components/PhotosCard.js
index 0181fdca..d3c56133 100644
--- a/new-lamassu-admin/src/pages/Customers/components/PhotosCard.js
+++ b/new-lamassu-admin/src/pages/Customers/components/PhotosCard.js
@@ -14,12 +14,17 @@ import PhotosCarousel from './PhotosCarousel'
const useStyles = makeStyles(styles)
-const PhotosCard = memo(({ photosData }) => {
+const PhotosCard = memo(({ photosData, timezone }) => {
const classes = useStyles()
const [photosDialog, setPhotosDialog] = useState(false)
- const singlePhoto = R.head(photosData)
+ const sortedPhotosData = R.sortWith(
+ [(a, b) => R.has('id', a) - R.has('id', b), R.descend(R.prop('date'))],
+ photosData
+ )
+
+ const singlePhoto = R.head(sortedPhotosData)
return (
<>
@@ -39,7 +44,7 @@ const PhotosCard = memo(({ photosData }) => {
/>
- {photosData.length}
+ {sortedPhotosData.length}
@@ -51,7 +56,9 @@ const PhotosCard = memo(({ photosData }) => {
-
-
-
{photosData && photosData[currentIndex]?.date}
-
+ {photosData[currentIndex].date && (
+ <>
+
+
+ {photosData &&
+ formatDate(
+ photosData[currentIndex]?.date,
+ timezone,
+ 'yyyy-MM-dd HH:mm'
+ )}
+
+ >
+ )}
diff --git a/new-lamassu-admin/src/pages/Customers/components/TransactionsList.js b/new-lamassu-admin/src/pages/Customers/components/TransactionsList.js
index b2f9e9e2..2ec6a13e 100644
--- a/new-lamassu-admin/src/pages/Customers/components/TransactionsList.js
+++ b/new-lamassu-admin/src/pages/Customers/components/TransactionsList.js
@@ -120,7 +120,7 @@ const TransactionsList = ({ customer, data, loading, locale }) => {
{
header: 'Date',
width: 100,
- view: it => formatDate(it.created, timezone, 'yyyy-MM-dd')
+ view: it => formatDate(it.created, timezone, 'yyyy‑MM‑dd')
},
{
header: 'Time (h:m:s)',