@depay/widgets 7.14.2 → 7.14.3

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/umd/index.js CHANGED
@@ -1655,7 +1655,12 @@
1655
1655
  focusToFixed = parseFloat(_float).toFixed(1).replace('.', '');
1656
1656
  }
1657
1657
 
1658
- if (focusToFixed.toString()[0] != "0" && focusToFixed.toString().length > 2) {
1658
+ if (focusToFixed == '099' && parseInt(inputAsFloat.toFixed(0)) == 0) {
1659
+ focusToFixed = direction == 'up' ? '100' : '990';
1660
+ return parseFloat(digitsAfterDecimal.replace(/\d{3}$/, focusToFixed));
1661
+ } else if (focusToFixed == '100' && parseInt(inputAsFloat.toFixed(0)) == 0) {
1662
+ return parseFloat(digitsAfterDecimal.replace(/\d{4}$/, focusToFixed));
1663
+ } else if (focusToFixed.toString()[0] != "0" && focusToFixed.toString().length > 2) {
1659
1664
  return parseInt(inputAsFloat.toFixed(0));
1660
1665
  } else {
1661
1666
  return parseFloat(digitsAfterDecimal.replace(/\d{3}$/, focusToFixed));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@depay/widgets",
3
3
  "moduleName": "DePayWidgets",
4
- "version": "7.14.2",
4
+ "version": "7.14.3",
5
5
  "description": "Web3 Payments with any token. DePay simplifies and improves Web3 Payments with the power of DeFi. Accept any token with on-the-fly conversion.",
6
6
  "main": "./dist/umd/index.js",
7
7
  "module": "./dist/esm/index.js",