Fix regression for NULL valued numbers in the summary calculation

This commit is contained in:
Brady Wetherington 2021-08-19 12:01:47 -07:00
parent 7b447a2f16
commit e28db2d221

View file

@ -596,6 +596,9 @@
}
function cleanFloat(number) {
if(!number) { // in a JavaScript context, meaning, if it's null or zero or unset
return 0.0;
}
if ("{{$snipeSettings->digit_separator}}" == "1.234,56") {
// yank periods, change commas to periods
periodless = number.toString().replace("\.","");