@zeniai/client-epic-state 4.12.27 → 4.12.28
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/lib/view/vendorReviewView/vendorGlobalReviewView/epics/approveVendorGlobalReviewEpic.js +1 -1
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewReducer.js +1 -1
- package/lib/view/vendorReviewView/vendorGlobalReviewView/vendorGlobalReviewViewState.d.ts +1 -1
- package/package.json +1 -1
package/lib/view/vendorReviewView/vendorGlobalReviewView/epics/approveVendorGlobalReviewEpic.js
CHANGED
|
@@ -19,7 +19,7 @@ const approveVendorGlobalReviewEpic = (actions$, state$, zeniAPI) => actions$.pi
|
|
|
19
19
|
const { globalMerchantState, vendorGlobalReviewViewState } = state$.value;
|
|
20
20
|
const { vendorGlobalByMerchantId } = vendorGlobalReviewViewState;
|
|
21
21
|
const merchantData = vendorGlobalByMerchantId[merchantId].vendorGlobalReviewViewLocalData;
|
|
22
|
-
const selectedMerchant = merchantData != null
|
|
22
|
+
const selectedMerchant = merchantData != null && merchantData.selectedMerchantId != null
|
|
23
23
|
? (0, globalMerchantSelector_1.getGlobalMerchantByMerchantId)(globalMerchantState, merchantData.selectedMerchantId)
|
|
24
24
|
: undefined;
|
|
25
25
|
const tenantMerchant = (0, globalMerchantSelector_1.getTenantMerchantByMerchantKey)(globalMerchantState, (0, globalMerchantState_1.getTenantMerchantKey)(merchantData.tenantId, merchantId));
|
|
@@ -227,7 +227,7 @@ const mapPayloadToVendorGlobalReviewView = (payload) => {
|
|
|
227
227
|
const { recommendationIds, nonExistingRecommendations } = (0, commonTypes_1.toAllRecommendationsFromPayload)(payload.recommendations);
|
|
228
228
|
return {
|
|
229
229
|
merchantId: payload.merchant_id,
|
|
230
|
-
selectedMerchantId:
|
|
230
|
+
selectedMerchantId: null,
|
|
231
231
|
tenantId: payload.tenant_id,
|
|
232
232
|
recommendationIds,
|
|
233
233
|
recommendedNonExistingGlobalMerchants: nonExistingRecommendations,
|
|
@@ -22,7 +22,7 @@ export interface VendorGlobalReviewViewUIState {
|
|
|
22
22
|
}
|
|
23
23
|
export interface VendorGlobalReviewViewLocalData {
|
|
24
24
|
merchantId: ID;
|
|
25
|
-
selectedMerchantId: ID;
|
|
25
|
+
selectedMerchantId: ID | null;
|
|
26
26
|
tenantId: ID;
|
|
27
27
|
recommendationIds: ID[];
|
|
28
28
|
recommendedNonExistingGlobalMerchants: RecommendedNonExistingGlobalMerchant[];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeniai/client-epic-state",
|
|
3
|
-
"version": "4.12.
|
|
3
|
+
"version": "4.12.28",
|
|
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
|
"types": "lib/index.d.ts",
|