labsense-ui-kit 1.2.64 → 1.2.65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9102,8 +9102,10 @@ var CircularProgress = function CircularProgress(_ref) {
9102
9102
  var radius = (viewBoxSize - strokeWidth) / 2;
9103
9103
  var circumference = 2 * Math.PI * radius;
9104
9104
  var parseVolumeData = function parseVolumeData(threshold, totalCapacity, usedCapacity) {
9105
+ var total = Number(totalCapacity) || 0;
9106
+ var used = Number(usedCapacity) || 0;
9105
9107
  var thresholdValue = threshold != null ? threshold : 100;
9106
- var progress = usedCapacity / totalCapacity * 100;
9108
+ var progress = total > 0 ? used / total * 100 : 0;
9107
9109
  return {
9108
9110
  progress: Math.min(Math.max(Math.round(progress), 0), 100),
9109
9111
  processedThreshold: Math.min(Math.max(thresholdValue, 0), 100)