@zeniai/client-epic-state 5.1.41-beta1ND → 5.1.41

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.
@@ -42,17 +42,13 @@ const saveExternalConnectionEpic = (actions$, _, zeniAPI) => actions$.pipe((0, o
42
42
  }
43
43
  else {
44
44
  actions.push((0, tenantReducer_1.saveExternalConnectionFailure)(action.payload.tenantId, response.status));
45
- actions.push((0, snackbarReducer_1.openSnackbar)(response.status?.code === QBO_REALM_ALREADY_LINKED_STATUS
46
- ? {
47
- messageSection: 'qbo_connection_already_linked',
48
- messageText: 'failed',
49
- type: 'error',
50
- }
51
- : {
52
- messageSection: 'qbo_connection_failed',
53
- messageText: 'failed',
54
- type: 'error',
55
- }));
45
+ actions.push((0, snackbarReducer_1.openSnackbar)({
46
+ messageSection: response.status?.code === QBO_REALM_ALREADY_LINKED_STATUS
47
+ ? 'qbo_connection_already_linked'
48
+ : 'qbo_connection_failed',
49
+ messageText: 'failed',
50
+ type: 'error',
51
+ }));
56
52
  if (action.payload.companyId != null &&
57
53
  action.payload.userId != null) {
58
54
  actions.push((0, companyReducer_1.updateQBOConnectionStatusForCompany)({
@@ -36,17 +36,13 @@ export const saveExternalConnectionEpic = (actions$, _, zeniAPI) => actions$.pip
36
36
  }
37
37
  else {
38
38
  actions.push(saveExternalConnectionFailure(action.payload.tenantId, response.status));
39
- actions.push(openSnackbar(response.status?.code === QBO_REALM_ALREADY_LINKED_STATUS
40
- ? {
41
- messageSection: 'qbo_connection_already_linked',
42
- messageText: 'failed',
43
- type: 'error',
44
- }
45
- : {
46
- messageSection: 'qbo_connection_failed',
47
- messageText: 'failed',
48
- type: 'error',
49
- }));
39
+ actions.push(openSnackbar({
40
+ messageSection: response.status?.code === QBO_REALM_ALREADY_LINKED_STATUS
41
+ ? 'qbo_connection_already_linked'
42
+ : 'qbo_connection_failed',
43
+ messageText: 'failed',
44
+ type: 'error',
45
+ }));
50
46
  if (action.payload.companyId != null &&
51
47
  action.payload.userId != null) {
52
48
  actions.push(updateQBOConnectionStatusForCompany({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeniai/client-epic-state",
3
- "version": "5.1.41-beta1ND",
3
+ "version": "5.1.41",
4
4
  "description": "Shared module between Web & Mobile containing required abstractions for state management, async network communication. ",
5
5
  "main": "lib/index.js",
6
6
  "module": "lib/esm/index.js",