@thecb/components 11.4.2-beta.2 → 11.4.2-beta.4

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": "11.4.2-beta.2",
3
+ "version": "11.4.2-beta.4",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -49,9 +49,6 @@ const InactiveControlsModule = ({
49
49
  id: obligationAssocID,
50
50
  obligationSlug: config?.obligationSlug
51
51
  };
52
- debugger;
53
- // eslint-disable-next-line no-console
54
- console.debug("DeleteObligationAssoc (cb-components) payload", payload);
55
52
  deleteObligationAssoc(payload);
56
53
  };
57
54
  return (
@@ -30,6 +30,7 @@ const RemoveAccountModalModule = ({
30
30
  : accountType === "Property" && obligations.length > 1
31
31
  ? "properties"
32
32
  : accountType.toLowerCase();
33
+ const accountsText = (accounts ?? "").trim();
33
34
 
34
35
  return (
35
36
  <Modal
@@ -37,7 +38,9 @@ const RemoveAccountModalModule = ({
37
38
  hideModal={() => setModalIsOpen(false)}
38
39
  modalOpen={modalIsOpen}
39
40
  modalHeaderText={`Remove ${accountType}`}
40
- modalBodyText={`Are you sure you want to remove the ${identifier} ${accounts}? Any autopay scheduled against ${
41
+ modalBodyText={`Are you sure you want to remove the ${identifier}${
42
+ accountsText ? ` ${accountsText}` : ""
43
+ }? Any autopay scheduled against ${
41
44
  obligations.length > 1 ? "them" : "it"
42
45
  } will be deactivated.`}
43
46
  continueButtonText="Remove"