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

Commit

Permalink
Solved two Khanna Issue
Browse files Browse the repository at this point in the history
  • Loading branch information
mukund-egov committed Oct 8, 2024
1 parent 5f94c27 commit 10d9780
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 10d9780

Please sign in to comment.