diff --git a/web/src/views/events/EventView.tsx b/web/src/views/events/EventView.tsx
index a936c1b66..eaae92a0f 100644
--- a/web/src/views/events/EventView.tsx
+++ b/web/src/views/events/EventView.tsx
@@ -452,13 +452,13 @@ function DetectionReview({
/>
)}
- {currentItems == null && (
+ {!currentItems && (
)}
- {currentItems != null && currentItems.length == 0 && (
+ {currentItems?.length === 0 && (
There are no {severity.replace(/_/g, " ")}s to review
@@ -496,19 +496,17 @@ function DetectionReview({
);
})}
- {currentItems != null &&
- currentItems.length > 0 &&
- (itemsToReview ?? 0) > 0 && (
-
-
-
- )}
+ {(currentItems?.length ?? 0) > 0 && (itemsToReview ?? 0) > 0 && (
+
+
+
+ )}