From 4bd8c31266f2c564031b1a81b5cf30c10f669df0 Mon Sep 17 00:00:00 2001 From: Priyanka Terala <104053200+Terala-Priyanka@users.noreply.github.com> Date: Fri, 12 Jan 2024 19:17:57 +0530 Subject: [PATCH] Update src/UserSearchContainer.js Co-authored-by: Artem Blazhko --- src/UserSearchContainer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/UserSearchContainer.js b/src/UserSearchContainer.js index 2a799b3..07d1cbb 100644 --- a/src/UserSearchContainer.js +++ b/src/UserSearchContainer.js @@ -194,7 +194,7 @@ class UserSearchContainer extends React.Component { if (activeFilters.includes(UAS)) { const assignedUserIds = Object.keys(initialSelectedUsers); - const hasBothUASFilters = activeFilters.includes(`${ASSIGNED_FILTER_KEY}`) && activeFilters.includes(UNASSIGNED_FILTER_KEY); + const hasBothUASFilters = activeFilters.includes(ASSIGNED_FILTER_KEY) && activeFilters.includes(UNASSIGNED_FILTER_KEY); const hasNoneOfUASFilters = !activeFilters.includes(ASSIGNED_FILTER_KEY) && !activeFilters.includes(UNASSIGNED_FILTER_KEY); const uasFilterValue = activeFilters.split(',').filter(f => f.includes(UAS))[0].split('.')[1];