@transferwise/components 46.36.0 → 46.36.1

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/build/index.js CHANGED
@@ -7462,13 +7462,10 @@ const parseNumber = ({
7462
7462
  locale,
7463
7463
  maxLengthOverride
7464
7464
  }) => {
7465
- if (!maxLengthOverride) {
7466
- return parseAmount(amount, currency, locale);
7467
- }
7468
7465
  if (maxLengthOverride && amount.length > maxLengthOverride) {
7469
7466
  return 0;
7470
7467
  }
7471
- return Number(amount);
7468
+ return parseAmount(amount, currency, locale);
7472
7469
  };
7473
7470
  const allowedInputKeys = new Set(['Backspace', 'Delete', ',', '.', 'ArrowDown', 'ArrowUp', 'ArrowLeft', 'ArrowRight', 'Enter', 'Escape', 'Tab']);
7474
7471
  class MoneyInput extends React.Component {