Skip to content
Snippets Groups Projects

Issue #395 - Validate numeric fields on search ranges

Merged Dima Rifai requested to merge delrifai/#395_validate_numeric_values_search_ranges into develop
1 file
+ 3
3
Compare changes
  • Side-by-side
  • Inline
@@ -37,10 +37,10 @@ const SearchRanges: React.FC<SearchRangesProps> = ({
} = rangesProps;
const setNumericValue = (value: number, fieldSetter: Function) => {
if (value === 0) {
fieldSetter(undefined);
} else {
if (!Number.isNaN(value) && value > 0) {
fieldSetter(value);
} else {
fieldSetter(undefined);
}
};
Loading