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 af19a5905..5f14662b8 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); }