@orderly.network/ui-tradingview 2.8.6 → 2.8.7

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.
package/dist/index.js CHANGED
@@ -1241,9 +1241,12 @@ var _HistoryProvider = class _HistoryProvider {
1241
1241
  barValue.low = parseFloat(response.l[i]);
1242
1242
  }
1243
1243
  if (volumePresent) {
1244
- barValue.volume = parseFloat(
1245
- response.v[i]
1246
- );
1244
+ const volume = parseFloat(response.v[i]);
1245
+ if (volume > 0) {
1246
+ barValue.volume = volume;
1247
+ } else {
1248
+ barValue.volume = 1e-10;
1249
+ }
1247
1250
  }
1248
1251
  bars.push(barValue);
1249
1252
  }