From 4dbafb51f29c9ba106864bbe4d4f2471cae6cedc Mon Sep 17 00:00:00 2001 From: Smit Patel Date: Fri, 12 Aug 2022 15:16:30 +0530 Subject: [PATCH] PCORE-2213: Date update_at fix (#36) * feat: minor cosmetic change in showing dates * feat: minor cosmetic change in showing dates * feat: scroll to input when editing incident * fix: class to classname --- react-frontend/src/components/IncidentUpdate.jsx | 2 +- react-frontend/src/components/IncidentsBlock.jsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/react-frontend/src/components/IncidentUpdate.jsx b/react-frontend/src/components/IncidentUpdate.jsx index 3bde6602..6ab3e150 100644 --- a/react-frontend/src/components/IncidentUpdate.jsx +++ b/react-frontend/src/components/IncidentUpdate.jsx @@ -18,7 +18,7 @@ const IncidentUpdate = ({ update, admin }) => { return (
- +
diff --git a/react-frontend/src/components/IncidentsBlock.jsx b/react-frontend/src/components/IncidentsBlock.jsx index be276505..1a300332 100644 --- a/react-frontend/src/components/IncidentsBlock.jsx +++ b/react-frontend/src/components/IncidentsBlock.jsx @@ -35,7 +35,7 @@ const IncidentsBlock = ({ service, group }) => { incidents?.map((incident) => { const { id, title, description, updates, updated_at } = incident; const latestUpdate = - updates?.length > 0 && updates[updates.length - 1]; + updates?.length > 0 && updates[0]; const updatedAt = latestUpdate ? latestUpdate.updated_at : updated_at;