Skip to content

Commit

Permalink
Fix offenses modal when action or severity is null (#520)
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-w-gries authored Dec 10, 2024
1 parent c1d64f0 commit 745ba96
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/features/OffenseTable/OffenseTable.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,12 @@ function OffenseRow({ offenseRecord, selected, onSelect, dob, warnings }) {
</TableCell>
<TableCell tooltip={offenseRecord.offense_date}>{offenseRecord.offense_date}</TableCell>
<TableCell tooltip={offenseRecord.description}>{offenseRecord.description}</TableCell>
<TableCell tooltip={offenseRecord.action}>{toNormalCaseEachWord(offenseRecord.action)}</TableCell>
<TableCell tooltip={offenseRecord.severity}>{toNormalCaseEachWord(offenseRecord.severity)}</TableCell>
<TableCell tooltip={offenseRecord.action}>
{offenseRecord.action ? toNormalCaseEachWord(offenseRecord.action) : ''}
</TableCell>
<TableCell tooltip={offenseRecord.severity}>
{offenseRecord.severity ? toNormalCaseEachWord(offenseRecord.severity) : ''}
</TableCell>
<TableCell>
{warnings.length > 0 && (
<Tooltip
Expand Down

0 comments on commit 745ba96

Please sign in to comment.