diff --git a/packages/fhir-keycloak-user-management/src/components/CreateEditUser/tests/extra-fields-user.test.tsx b/packages/fhir-keycloak-user-management/src/components/CreateEditUser/tests/extra-fields-user.test.tsx
index bc75207ec..dbf7f6c4a 100644
--- a/packages/fhir-keycloak-user-management/src/components/CreateEditUser/tests/extra-fields-user.test.tsx
+++ b/packages/fhir-keycloak-user-management/src/components/CreateEditUser/tests/extra-fields-user.test.tsx
@@ -231,11 +231,11 @@ test('renders correctly for edit user', async () => {
const nationalIdInput = document.querySelector('input#nationalId');
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
- userEvent.type(nationalIdInput!, '1234567891011121' as any);
+ userEvent.type(nationalIdInput!, '1234567891011121');
const phoneNumberInput = document.querySelector('input#phoneNumber');
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
- userEvent.type(phoneNumberInput!, '0700123456' as any);
+ userEvent.type(phoneNumberInput!, '0700123456');
const emailInput = document.querySelector('input#email');
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
diff --git a/packages/fhir-keycloak-user-management/src/components/UserList/Viewdetails/index.tsx b/packages/fhir-keycloak-user-management/src/components/UserList/Viewdetails/index.tsx
index 33745680b..d74435b08 100644
--- a/packages/fhir-keycloak-user-management/src/components/UserList/Viewdetails/index.tsx
+++ b/packages/fhir-keycloak-user-management/src/components/UserList/Viewdetails/index.tsx
@@ -188,15 +188,13 @@ export const UserDetails = (props: UserDetailProps) => {
) : (
- {attributesArray.map(([key, value]) => {
- if (!renderExtraFields.includes(key)) {
- return (
-
- {JSON.stringify(value)}
-
- );
- }
- })}
+ {attributesArray
+ .filter(([key]) => !renderExtraFields.includes(key))
+ .map(([key, value]) => (
+
+ {JSON.stringify(value)}
+
+ ))}
)}
diff --git a/packages/keycloak-user-management/src/components/forms/UserForm/utils.tsx b/packages/keycloak-user-management/src/components/forms/UserForm/utils.tsx
index ebc8272bd..6d5d778d8 100644
--- a/packages/keycloak-user-management/src/components/forms/UserForm/utils.tsx
+++ b/packages/keycloak-user-management/src/components/forms/UserForm/utils.tsx
@@ -24,7 +24,6 @@ import { IPractitioner } from '@smile-cdr/fhirts/dist/FHIR-R4/interfaces/IPracti
import type { TFunction } from '@opensrp/i18n';
import { IPractitionerRole } from '@smile-cdr/fhirts/dist/FHIR-R4/interfaces/IPractitionerRole';
import { IComposition } from '@smile-cdr/fhirts/dist/FHIR-R4/interfaces/IComposition';
-import { Identifier } from '@smile-cdr/fhirts/dist/FHIR-R4/classes/identifier';
/**
* Utility function to get new user UUID from POST response location header