We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 777ce98 commit c7efb3dCopy full SHA for c7efb3d
packages/react-form-renderer/src/use-field-api/convert-type.js
@@ -23,7 +23,9 @@ const canBeConvertedToNumber = (value) => !isNaN(Number(value)) && value !== '';
23
* @param {Any} value value to be checked
24
*/
25
const canBeConvertedToFloat = (value) => {
26
- if (typeof value == 'string' && value.endsWith('.')) return false;
+ if (typeof value == 'string' && value.endsWith('.')) {
27
+ return false;
28
+ }
29
return canBeConvertedToNumber(value);
30
};
31
0 commit comments