Skip to content
This repository has been archived by the owner on Nov 26, 2024. It is now read-only.

Commit

Permalink
Merge pull request #968 from egovernments/ISTE-475
Browse files Browse the repository at this point in the history
Solved two Khanna Issue
  • Loading branch information
pradeepkumarcm-egov authored Oct 8, 2024
2 parents 2040d67 + 10d9780 commit a477f0a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit a477f0a

Please sign in to comment.