Some refactoring

This commit is contained in:
Evgenii Abramov
2021-03-20 00:07:33 +03:00
parent a0c1f972aa
commit f6b760d8e2

View File

@@ -7,7 +7,7 @@ function convertToYandexValue(val, actType) {
try {
const value = parseFloat(val);
return isNaN(value) ? 0.0 : value;
} catch {
} catch(e) {
console.error(`Can't parse to float: ${val}`);
return 0.0;
}