@thecb/components 11.4.2-beta.3 → 11.4.2

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
@@ -45358,6 +45358,7 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
45358
45358
  return formattedAccount === agencyName ? agencyName : acc + formattedAccount;
45359
45359
  }, "".concat(agencyName, " - ")) : "";
45360
45360
  var identifier = accountType === "Account" && obligations.length > 1 ? "accounts" : accountType === "Property" && obligations.length > 1 ? "properties" : accountType.toLowerCase();
45361
+ var accountsText = (accounts !== null && accounts !== void 0 ? accounts : "").trim();
45361
45362
  return /*#__PURE__*/React__default.createElement(Modal$3, {
45362
45363
  showModal: function showModal() {
45363
45364
  return setModalIsOpen(true);
@@ -45367,7 +45368,7 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
45367
45368
  },
45368
45369
  modalOpen: modalIsOpen,
45369
45370
  modalHeaderText: "Remove ".concat(accountType),
45370
- modalBodyText: "Are you sure you want to remove the ".concat(identifier, " ").concat(accounts, "? Any autopay scheduled against ").concat(obligations.length > 1 ? "them" : "it", " will be deactivated."),
45371
+ modalBodyText: "Are you sure you want to remove the ".concat(identifier).concat(accountsText ? " ".concat(accountsText) : "", "? Any autopay scheduled against ").concat(obligations.length > 1 ? "them" : "it", " will be deactivated."),
45371
45372
  continueButtonText: "Remove",
45372
45373
  continueAction: function continueAction() {
45373
45374
  if (!disableActions) {