mediacube-ui 0.1.413 → 0.1.415

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.
@@ -590,8 +590,8 @@ export default {
590
590
  setDecimalsLimit(val) {
591
591
  if (val && this.maxDecimals) {
592
592
  const [integerPart, decimalPart] = val.split('.')
593
- if (decimalPart?.length > this.maxDecimals) {
594
- return `${integerPart}.${decimalPart.slice(0, this.maxDecimals)}`
593
+ if (decimalPart && decimalPart.replace(/ /gm, '').length > this.maxDecimals) {
594
+ return `${integerPart}.${decimalPart.replace(/ /gm, '').slice(0, this.maxDecimals)}`
595
595
  }
596
596
  }
597
597
  return val