Skip to content

Commit

Permalink
fix: 🐛 fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yeukfei02 committed Jan 2, 2023
1 parent ac47c08 commit 1955533
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions apps/web/src/components/cardView/CardView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ function CardView({ incident, normalUsers, getIncidents }: Props) {

const minutesDiff = now.diff(incidentCreatedDate, 'minutes');
const hoursDiff = now.diff(incidentCreatedDate, 'hours');

let timeDiffStr = '';
if (minutesDiff <= 60) {
timeDiffStr = `${minutesDiff} minutes ago`;
Expand All @@ -253,16 +253,14 @@ function CardView({ incident, normalUsers, getIncidents }: Props) {
return (
<>
<Card className="p-3 my-3">
{
userRole && userRole === UserRole.ADMIN ?
{userRole && userRole === UserRole.ADMIN ? (
<div className="flex justify-end m-1">
<CloseIcon
className="cursor-pointer"
onClick={() => handleDeleteButtonClick()}
/>
</div>:
null
}
<CloseIcon
className="cursor-pointer"
onClick={() => handleDeleteButtonClick()}
/>
</div>
) : null}
<CardContent>
<Typography variant="h5" component="div">
{incident.title}
Expand Down

0 comments on commit 1955533

Please sign in to comment.