@axos-web-dev/shared-components 1.0.99-dev-6 → 1.0.99-dev-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.
@@ -27,7 +27,7 @@ const MonthlyPaymentCalculator = ({ variant, header, disclosure, bodyCopy, showC
27
27
  return "";
28
28
  }
29
29
  return numericValue.toLocaleString("en-US", {
30
- style: "currency",
30
+ style: showCurrency ? "currency" : "decimal",
31
31
  currency: "USD",
32
32
  minimumFractionDigits: 0,
33
33
  maximumFractionDigits: 0
@@ -51,7 +51,7 @@ const MonthlyPaymentCalculator = ({ variant, header, disclosure, bodyCopy, showC
51
51
  };
52
52
  const handleLoanAmountChange = (event) => {
53
53
  const value = event.target.value;
54
- const formattedValue = showCurrency ? formatToCurrency(value) : value;
54
+ const formattedValue = formatToCurrency(value);
55
55
  setLoanAmountDisplay(formattedValue);
56
56
  const numericValue = parseFloat(value.replace(/[^0-9.]/g, ""));
57
57
  setLoanAmount(isNaN(numericValue) ? void 0 : numericValue);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@axos-web-dev/shared-components",
3
3
  "description": "Axos shared components library for web.",
4
- "version": "1.0.99-dev-6",
4
+ "version": "1.0.99-dev-7",
5
5
  "type": "module",
6
6
  "module": "dist/main.js",
7
7
  "types": "dist/main.d.ts",