@hmcts/ccd-case-ui-toolkit 7.3.53-exui-4291 → 7.3.53-exui-4453-rc1
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.
|
@@ -1758,6 +1758,9 @@ class ActivityService {
|
|
|
1758
1758
|
}
|
|
1759
1759
|
return error;
|
|
1760
1760
|
}
|
|
1761
|
+
static logUserMayNotBeAuthenticated() {
|
|
1762
|
+
console.warn('User may not be authenticated. Activity request was not sent.');
|
|
1763
|
+
}
|
|
1761
1764
|
getOptions() {
|
|
1762
1765
|
const userDetails = safeJsonParse(this.sessionStorageService.getItem(USER_DETAILS));
|
|
1763
1766
|
let headers = new HttpHeaders().set('Content-Type', 'application/json');
|
|
@@ -1778,8 +1781,8 @@ class ActivityService {
|
|
|
1778
1781
|
.get(url, options, false, ActivityService.handleHttpError)
|
|
1779
1782
|
.pipe(map(response => response));
|
|
1780
1783
|
}
|
|
1781
|
-
catch
|
|
1782
|
-
|
|
1784
|
+
catch {
|
|
1785
|
+
ActivityService.logUserMayNotBeAuthenticated();
|
|
1783
1786
|
}
|
|
1784
1787
|
}
|
|
1785
1788
|
postActivity(caseId, activity) {
|
|
@@ -1791,8 +1794,8 @@ class ActivityService {
|
|
|
1791
1794
|
.post(url, body, options, false)
|
|
1792
1795
|
.pipe(map(response => response));
|
|
1793
1796
|
}
|
|
1794
|
-
catch
|
|
1795
|
-
|
|
1797
|
+
catch {
|
|
1798
|
+
ActivityService.logUserMayNotBeAuthenticated();
|
|
1796
1799
|
}
|
|
1797
1800
|
}
|
|
1798
1801
|
verifyUserIsAuthorized() {
|