@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.mjs CHANGED
@@ -7432,13 +7432,10 @@ const parseNumber = ({
7432
7432
  locale,
7433
7433
  maxLengthOverride
7434
7434
  }) => {
7435
- if (!maxLengthOverride) {
7436
- return parseAmount(amount, currency, locale);
7437
- }
7438
7435
  if (maxLengthOverride && amount.length > maxLengthOverride) {
7439
7436
  return 0;
7440
7437
  }
7441
- return Number(amount);
7438
+ return parseAmount(amount, currency, locale);
7442
7439
  };
7443
7440
  const allowedInputKeys = new Set(['Backspace', 'Delete', ',', '.', 'ArrowDown', 'ArrowUp', 'ArrowLeft', 'ArrowRight', 'Enter', 'Escape', 'Tab']);
7444
7441
  class MoneyInput extends Component {