Skip to content

Commit

Permalink
fix(chor): pretty code
Browse files Browse the repository at this point in the history
  • Loading branch information
manojava-gk committed Oct 18, 2024
1 parent 4083669 commit 97b66fb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/components/pages/CompanyData/components/FormFields.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<IHashMap<string>>(
responseToForm(data)
Expand Down
12 changes: 6 additions & 6 deletions src/features/info/search/actions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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()
Expand Down

0 comments on commit 97b66fb

Please sign in to comment.