@thecb/components 7.11.0-beta.2 → 7.11.0-beta.3

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.esm.js CHANGED
@@ -46521,11 +46521,14 @@ var PartialAmountForm = function PartialAmountForm(_ref) {
46521
46521
  var errorMessages = amountErrors;
46522
46522
 
46523
46523
  if (blockPartialPaymentOverpay) {
46524
+ console.log("item amount in form is", itemAmount);
46524
46525
  var maxAmount = !maximum || itemAmount < maximum ? itemAmount : maximum;
46525
46526
  var maxAmountError = "There is a maximum payment of ".concat(displayCurrency(maxAmount));
46527
+ console.log("max amount in form is", maxAmount);
46526
46528
  errorMessages[numberLessThanOrEqualTo.error] = maxAmountError;
46527
46529
  }
46528
46530
 
46531
+ console.log("error messages are", errorMessages);
46529
46532
  return errorMessages;
46530
46533
  };
46531
46534
 
@@ -46577,6 +46580,7 @@ var createPartialAmountFormState = function createPartialAmountFormState(lineIte
46577
46580
  paymentMax = !maximum || item.amount < maximum ? item.amount : maximum;
46578
46581
  }
46579
46582
 
46583
+ console.log("payment max is", paymentMax);
46580
46584
  var validators = [required(), validateSum(numberGreaterThanOrEqualTo(minimum), lineItems.filter(function (lineItem) {
46581
46585
  return lineItem != item;
46582
46586
  }).reduce(function (acc, curr) {