@thecb/components 7.11.0-beta.7 → 7.11.0
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 +0 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.esm.js +0 -5
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/components/molecules/partial-amount-form/PartialAmountForm.js +0 -2
- package/src/components/molecules/partial-amount-form/PartialAmountForm.state.js +0 -4
package/package.json
CHANGED
|
@@ -41,7 +41,6 @@ const PartialAmountForm = ({
|
|
|
41
41
|
const getPartialAmountFormErrors = itemAmount => {
|
|
42
42
|
let errorMessages = amountErrors;
|
|
43
43
|
if (blockPartialPaymentOverpay) {
|
|
44
|
-
console.log("item amount in form is", itemAmount);
|
|
45
44
|
const maxAmountError = `There is a maximum payment of ${displayCurrency(
|
|
46
45
|
itemAmount
|
|
47
46
|
)}`;
|
|
@@ -50,7 +49,6 @@ const PartialAmountForm = ({
|
|
|
50
49
|
[numberLessThanOrEqualTo.error]: maxAmountError
|
|
51
50
|
};
|
|
52
51
|
}
|
|
53
|
-
console.log("error messages are", errorMessages);
|
|
54
52
|
return errorMessages;
|
|
55
53
|
};
|
|
56
54
|
|
|
@@ -14,10 +14,6 @@ export const createPartialAmountFormState = (
|
|
|
14
14
|
blockPartialPaymentOverpay = false
|
|
15
15
|
) => {
|
|
16
16
|
const formConfig = lineItems.reduce((acc, item) => {
|
|
17
|
-
console.log("maximum is", maximum);
|
|
18
|
-
console.log("item amount is", item.amount);
|
|
19
|
-
console.log("block payment overpay", blockPartialPaymentOverpay);
|
|
20
|
-
|
|
21
17
|
const validators = [
|
|
22
18
|
required(),
|
|
23
19
|
validateSum(
|