Skip to content

Commit e397e00

Browse files
authored
Group Audit Color Bug (#189)
1 parent 46d69d2 commit e397e00

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/pages/groups/Audit.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -256,10 +256,10 @@ export default function AuditGroup() {
256256
<TableRow
257257
key={row.id}
258258
sx={{
259-
backgroundColor: ({palette}) =>
260-
Object.values(row.ended_at == null || dayjs().isBefore(dayjs(row.ended_at)))
261-
? palette.highlight.success.main
262-
: palette.highlight.danger.main,
259+
bgcolor: ({palette: {highlight}}) =>
260+
row.ended_at == null || dayjs().isBefore(dayjs(row.ended_at))
261+
? highlight.success.main
262+
: highlight.danger.main,
263263
}}>
264264
<TableCell>
265265
{(row.user?.deleted_at ?? null) != null ? (

0 commit comments

Comments
 (0)