diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js index b9cea937e..0f7e6ff16 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js @@ -87,7 +87,7 @@ const Jurisdictions = ({ t, config, onSelect, userType, formData }) => { }, []); const uniqueDivisions = divisions?.reduce((unique, obj) => { - const isDuplicate = unique.some((item) => item.id === obj.id && item.name === obj.name); + const isDuplicate = unique.some((item) => item.id === obj.id && item.code === obj.code); if (!isDuplicate) { unique.push(obj); }