chore: fix status color for redirects on audit page (#6096)

This commit is contained in:
Kira Pilot
2023-02-08 09:40:51 -05:00
committed by GitHub
parent e17ed9f5e6
commit 3da33d23a4

View File

@ -19,6 +19,11 @@ import { AuditLogDescription } from "./AuditLogDescription"
import { determineGroupDiff } from "./auditUtils"
const httpStatusColor = (httpStatus: number): PaletteIndex => {
// redirects are successful
if (httpStatus === 307) {
return "success"
}
if (httpStatus >= 300 && httpStatus < 500) {
return "warning"
}