@thecb/components 4.1.28 → 4.1.29
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/index.cjs.js
CHANGED
|
@@ -38566,7 +38566,7 @@ var PartialAmountForm = function PartialAmountForm(_ref) {
|
|
|
38566
38566
|
}, []);
|
|
38567
38567
|
}
|
|
38568
38568
|
|
|
38569
|
-
var amountErrors = (_amountErrors = {}, _defineProperty(_amountErrors, required.error, "Amount is required"), _defineProperty(_amountErrors, numberGreaterThanOrEqualTo.error, "
|
|
38569
|
+
var amountErrors = (_amountErrors = {}, _defineProperty(_amountErrors, required.error, "Amount is required"), _defineProperty(_amountErrors, numberGreaterThanOrEqualTo.error, "There is a minimum payment of ".concat(displayCurrency(minimum))), _defineProperty(_amountErrors, numberLessThanOrEqualTo.error, "There is a maximum payment of ".concat(displayCurrency(maximum))), _amountErrors);
|
|
38570
38570
|
var lineItemsNew = Array.isArray(lineItems) ? lineItems : [];
|
|
38571
38571
|
return /*#__PURE__*/React__default.createElement(FormContainer$1, {
|
|
38572
38572
|
variant: variant,
|
package/package.json
CHANGED
|
@@ -29,10 +29,10 @@ const PartialAmountForm = ({
|
|
|
29
29
|
|
|
30
30
|
const amountErrors = {
|
|
31
31
|
[required.error]: "Amount is required",
|
|
32
|
-
[numberGreaterThanOrEqualTo.error]: `
|
|
32
|
+
[numberGreaterThanOrEqualTo.error]: `There is a minimum payment of ${displayCurrency(
|
|
33
33
|
minimum
|
|
34
34
|
)}`,
|
|
35
|
-
[numberLessThanOrEqualTo.error]: `
|
|
35
|
+
[numberLessThanOrEqualTo.error]: `There is a maximum payment of ${displayCurrency(
|
|
36
36
|
maximum
|
|
37
37
|
)}`
|
|
38
38
|
};
|