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
pull/1113/head
Smit Patel 2022-08-12 15:16:30 +05:30 committed by GitHub
parent fceb5b87c6
commit 4dbafb51f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -18,7 +18,7 @@ const IncidentUpdate = ({ update, admin }) => {
return (
<div className="incident-wrapper mb-3 pb-2 d-flex" role="alert">
<div className="time-line mr-2">
<span class="dot"></span>
<span className="dot"></span>
</div>
<div>

View File

@ -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;