@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.esm.js CHANGED
@@ -45350,6 +45350,7 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
45350
45350
  return formattedAccount === agencyName ? agencyName : acc + formattedAccount;
45351
45351
  }, "".concat(agencyName, " - ")) : "";
45352
45352
  var identifier = accountType === "Account" && obligations.length > 1 ? "accounts" : accountType === "Property" && obligations.length > 1 ? "properties" : accountType.toLowerCase();
45353
+ var accountsText = (accounts !== null && accounts !== void 0 ? accounts : "").trim();
45353
45354
  return /*#__PURE__*/React__default.createElement(Modal$3, {
45354
45355
  showModal: function showModal() {
45355
45356
  return setModalIsOpen(true);
@@ -45359,7 +45360,7 @@ var RemoveAccountModalModule = function RemoveAccountModalModule(_ref) {
45359
45360
  },
45360
45361
  modalOpen: modalIsOpen,
45361
45362
  modalHeaderText: "Remove ".concat(accountType),
45362
- 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."),
45363
+ 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."),
45363
45364
  continueButtonText: "Remove",
45364
45365
  continueAction: function continueAction() {
45365
45366
  if (!disableActions) {