@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "7.11.0-beta.7",
3
+ "version": "7.11.0",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -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(