From ed597da678fdcd8932ddb7dbf6171e3794538076 Mon Sep 17 00:00:00 2001 From: chandel-aman Date: Thu, 30 Nov 2023 03:16:30 +0530 Subject: [PATCH] increased test coverage for requests screen --- src/screens/Requests/Requests.tsx | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/screens/Requests/Requests.tsx b/src/screens/Requests/Requests.tsx index 63f8c5c1e6..e00839cd3f 100644 --- a/src/screens/Requests/Requests.tsx +++ b/src/screens/Requests/Requests.tsx @@ -352,13 +352,7 @@ const Requests = (): JSX.Element => { - {!isLoading && - usersData?.users.length === 0 && - searchByName.length > 0 ? ( -
-

{t('noRequestFound')}

-
- ) : isLoading ? ( + {isLoading ? ( ) : ( { )} + {!isLoading && displayedUsers.length === 0 && ( +
+
{t('noRequestFound')}
+
+ )} );