@rh-support/troubleshoot 2.2.192 → 2.2.193

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.
@@ -1 +1 @@
1
- {"version":3,"file":"Fts.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Fts.tsx"],"names":[],"mappings":"AAWA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAS/D,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAQD,iBAAS,GAAG,CAAC,KAAK,EAAE,MAAM,qBA4OzB;kBA5OQ,GAAG;;;AA+OZ,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"Fts.d.ts","sourceRoot":"","sources":["../../../../src/components/CaseInformation/Fts.tsx"],"names":[],"mappings":"AAWA,OAAO,KAA0C,MAAM,OAAO,CAAC;AAS/D,UAAU,MAAM;IACZ,cAAc,EAAE,OAAO,CAAC;IACxB,cAAc,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAQD,iBAAS,GAAG,CAAC,KAAK,EAAE,MAAM,qBA6OzB;kBA7OQ,GAAG;;;AAgPZ,eAAe,GAAG,CAAC"}
@@ -100,10 +100,12 @@ function Fts(props) {
100
100
  setCaseState(caseDispatch, { ftsContactSameAsOwner: e.target.checked });
101
101
  if (!e.target.checked) {
102
102
  setFtsContact('');
103
- return;
103
+ setContactInfoIntoGlobalState('');
104
+ }
105
+ else {
106
+ setFtsContact(`${phoneCountryCode}-${phoneAreaCodePrefixLineNumber}`);
107
+ setContactInfoIntoGlobalState(`${phoneCountryCode}-${phoneAreaCodePrefixLineNumber}`);
104
108
  }
105
- setFtsContact(`${phoneCountryCode}-${phoneAreaCodePrefixLineNumber}`);
106
- setContactInfoIntoGlobalState(`${phoneCountryCode}-${phoneAreaCodePrefixLineNumber}`);
107
109
  };
108
110
  const onSave = (e) => __awaiter(this, void 0, void 0, function* () {
109
111
  setContactInfoIntoGlobalState(contactInfo24X7State);
@@ -148,8 +150,7 @@ function Fts(props) {
148
150
  }
149
151
  // eslint-disable-next-line react-hooks/exhaustive-deps
150
152
  }, [phoneAreaCodePrefixLineNumber, phoneCountryCode]);
151
- const disableFtsNContact = !isEmpty(caseNumber) &&
152
- (!isFtsEditableOnEditPage(entitlementSla, severity) || isFtsContactUpdating || isFtsUpdating);
153
+ const disableFtsNContact = !isEmpty(caseNumber) && (!isFtsEditableOnEditPage(entitlementSla, severity) || isFtsUpdating);
153
154
  const maxLengthErrorMessage = t('Contact information cannot be more than {{limit}} characters.', {
154
155
  limit: CONTACT_INFO_24X7_LIMIT,
155
156
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.2.192",
3
+ "version": "2.2.193",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -60,8 +60,8 @@
60
60
  "@progress/kendo-licensing": "1.3.5",
61
61
  "@progress/kendo-react-pdf": "^5.16.0",
62
62
  "@redux-devtools/extension": "^3.3.0",
63
- "@rh-support/components": "2.1.92",
64
- "@rh-support/react-context": "2.1.101",
63
+ "@rh-support/components": "2.1.93",
64
+ "@rh-support/react-context": "2.1.102",
65
65
  "@rh-support/types": "2.0.5",
66
66
  "@rh-support/user-permissions": "2.1.57",
67
67
  "@rh-support/utils": "2.1.46",
@@ -134,5 +134,5 @@
134
134
  "defaults and supports es6-module",
135
135
  "maintained node versions"
136
136
  ],
137
- "gitHead": "8402b82ce0dac6a288aa9361ebb61f4a209f90e0"
137
+ "gitHead": "441d2489eca03e52a4c437c41638e5e0ae5338c3"
138
138
  }