Skip to content
Snippets Groups Projects
Commit 5ec82641 authored by Dima Rifai's avatar Dima Rifai
Browse files

Issue #395 - Validate numeric fields on search ranges

parent 27033dcb
No related branches found
No related tags found
1 merge request!497Issue #395 - Validate numeric fields on search ranges
Pipeline #111907 failed
......@@ -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);
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment