From 3aa00f0cd6e9eafd3b9c0eed64008e5c3ae27d48 Mon Sep 17 00:00:00 2001 From: Hieu Ngo Date: Wed, 8 Nov 2023 11:28:21 -0800 Subject: [PATCH] BUG: Empty staff list shows student's empty state #232 (#233) --- src/components/table/table.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/table/table.tsx b/src/components/table/table.tsx index 3b4d670f..958b2583 100644 --- a/src/components/table/table.tsx +++ b/src/components/table/table.tsx @@ -135,7 +135,7 @@ function EnhancedTableToolbar({ }: EnhancedTableToolbarProps) { return ( <> - {totalRows === 0 ? ( + {totalRows === 0 && type === "Students" ? (

{type}

) : ( - {people.length === 0 && !showInput && ( + {people.length === 0 && !showInput && type === "Students" && ( )} - {(people.length || showInput) && ( + {(people.length || showInput || type === "Staff") && (