From 97b66fb0bff91cf5133ef8570e97aab764a75b54 Mon Sep 17 00:00:00 2001 From: manojava-gk Date: Fri, 18 Oct 2024 15:14:33 +0530 Subject: [PATCH] fix(chor): pretty code --- .../pages/CompanyData/components/FormFields.tsx | 4 ++-- src/features/info/search/actions.ts | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/components/pages/CompanyData/components/FormFields.tsx b/src/components/pages/CompanyData/components/FormFields.tsx index dec7a74c8..6967dc1fa 100644 --- a/src/components/pages/CompanyData/components/FormFields.tsx +++ b/src/components/pages/CompanyData/components/FormFields.tsx @@ -274,8 +274,8 @@ export const FormFields = ({ countryCode: newForm ? '' : companyData.address.physicalPostalAddress.country, - countryIdentifier: newForm ? '' : identifier?.[0]?.type ?? '', - identifierNumber: newForm ? '' : identifier?.[0]?.value ?? '', + countryIdentifier: newForm ? '' : (identifier?.[0]?.type ?? ''), + identifierNumber: newForm ? '' : (identifier?.[0]?.value ?? ''), } const [formData, setFormData] = useState>( responseToForm(data) diff --git a/src/features/info/search/actions.ts b/src/features/info/search/actions.ts index 6c00e5aeb..9cac4187f 100644 --- a/src/features/info/search/actions.ts +++ b/src/features/info/search/actions.ts @@ -175,8 +175,8 @@ const fetchSearch = createAsyncThunk( .filter((item: AppMarketplaceApp) => uuid ? searchExpr.exec(item.id) - : (item.name && searchExpr.exec(item.name)) ?? - (item.provider && searchExpr.exec(item.provider)) + : ((item.name && searchExpr.exec(item.name)) ?? + (item.provider && searchExpr.exec(item.provider))) ) .map((item: AppMarketplaceApp) => appToSearchItem(item)), // Add an ESLint exception until there is a solution @@ -193,11 +193,11 @@ const fetchSearch = createAsyncThunk( users.content .filter((item: TenantUser) => uuid - ? searchExpr.exec(item.userEntityId) ?? - searchExpr.exec(item.companyUserId) - : searchExpr.exec(item.firstName) ?? + ? (searchExpr.exec(item.userEntityId) ?? + searchExpr.exec(item.companyUserId)) + : (searchExpr.exec(item.firstName) ?? searchExpr.exec(item.lastName) ?? - searchExpr.exec(item.email) + searchExpr.exec(item.email)) ) .map((item: TenantUser) => userToSearchItem(item)), ].flat()