@rh-support/troubleshoot 2.6.94 → 2.6.95

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":"CaseSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseSummary/CaseSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAuB3B,OAAO,KAA0C,MAAM,OAAO,CAAC;AAO/D,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,UAAW,MAAM,sBAwLxC,CAAC"}
1
+ {"version":3,"file":"CaseSummary.d.ts","sourceRoot":"","sources":["../../../../../../src/components/CaseEditView/Tabs/CaseSummary/CaseSummary.tsx"],"names":[],"mappings":"AAAA,OAAO,mBAAmB,CAAC;AAuB3B,OAAO,KAA0C,MAAM,OAAO,CAAC;AAO/D,UAAU,MAAM;IACZ,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,WAAW,UAAW,MAAM,sBAmLxC,CAAC"}
@@ -29,8 +29,7 @@ export const CaseSummary = (props) => {
29
29
  const [caseSummaryData, setCaseSummaryData] = useState(getApiResourceObject(null, true));
30
30
  const [caseSummaryState, setCaseSummaryState] = useState();
31
31
  const [errorMessage, setErrorMessage] = useState('');
32
- const { caseLanguage, caseComments } = useCaseSelector((state) => ({
33
- caseLanguage: state.caseDetails.caseLanguage,
32
+ const { caseComments } = useCaseSelector((state) => ({
34
33
  caseComments: state.caseDetails.comments,
35
34
  }), isEqual);
36
35
  const { globalMetadataState: { loggedInUserRights }, } = useContext(GlobalMetadataStateContext);
@@ -43,10 +42,6 @@ export const CaseSummary = (props) => {
43
42
  setIsFeedbackModalOpen(true);
44
43
  };
45
44
  useEffect(() => {
46
- if (caseLanguage !== 'en') {
47
- setCaseSummaryState(CaseSummaryStates.CASE_LANGUAGE_NOT_SUPPORTED);
48
- return;
49
- }
50
45
  if (!(caseComments === null || caseComments === void 0 ? void 0 : caseComments.length)) {
51
46
  setCaseSummaryState(CaseSummaryStates.NEW_CASE);
52
47
  setErrorMessage('Due to its recent creation and lack of comments, a case summary cannot be generated for this case.');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rh-support/troubleshoot",
3
- "version": "2.6.94",
3
+ "version": "2.6.95",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "registry": "https://registry.npmjs.org"
@@ -59,11 +59,11 @@
59
59
  "@progress/kendo-licensing": "1.3.5",
60
60
  "@progress/kendo-react-pdf": "^5.16.0",
61
61
  "@redux-devtools/extension": "^3.3.0",
62
- "@rh-support/components": "2.5.64",
63
- "@rh-support/react-context": "2.5.80",
62
+ "@rh-support/components": "2.5.65",
63
+ "@rh-support/react-context": "2.5.81",
64
64
  "@rh-support/types": "2.0.5",
65
- "@rh-support/user-permissions": "2.5.31",
66
- "@rh-support/utils": "2.5.27",
65
+ "@rh-support/user-permissions": "2.5.32",
66
+ "@rh-support/utils": "2.5.28",
67
67
  "@types/react-redux": "^7.1.33",
68
68
  "@types/redux": "^3.6.0",
69
69
  "date-fns": "3.6.0",
@@ -133,5 +133,5 @@
133
133
  "defaults and supports es6-module",
134
134
  "maintained node versions"
135
135
  ],
136
- "gitHead": "91b79ac9c0605961e2a0bc95f683e9c9c2a050f9"
136
+ "gitHead": "5bd0b48bd344b4362efb801ad01b96f0bba0df1a"
137
137
  }