Skip to content

Commit

Permalink
Adjusting validation of unique values (#2729)
Browse files Browse the repository at this point in the history
  • Loading branch information
ammont82 authored Dec 11, 2024
1 parent 0f08866 commit e910f67
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ export const getUniqueValidationSchema = <FormValues,>(
message: 'Unexpected error: Failed to get values to test uniqueness',
});
}
return values.filter((currentValue) => currentValue === value).length === 1;
return (
values.filter((currentValue) => currentValue.toLowerCase() === value?.toLowerCase())
.length === 1
);
},
);
};
Expand Down

0 comments on commit e910f67

Please sign in to comment.