@tap-payments/auth-jsconnect 2.4.72-test → 2.4.73-test
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.
|
@@ -704,9 +704,9 @@ export var brandSlice = createSlice({
|
|
|
704
704
|
var _a;
|
|
705
705
|
return team.id === ((_a = segment === null || segment === void 0 ? void 0 : segment.team) === null || _a === void 0 ? void 0 : _a.id);
|
|
706
706
|
});
|
|
707
|
-
state.data.brandSegmentData.segmentLocation = selectedSegmentLocation;
|
|
708
|
-
state.data.brandSegmentData.segmentProfit = selectedSegmentProfit;
|
|
709
|
-
state.data.brandSegmentData.segmentTech = selectedSegmentTech;
|
|
707
|
+
state.data.brandSegmentData.segmentLocation = selectedSegmentLocation || (segmentLocationList === null || segmentLocationList === void 0 ? void 0 : segmentLocationList[0]);
|
|
708
|
+
state.data.brandSegmentData.segmentProfit = selectedSegmentProfit || (segmentProfitList === null || segmentProfitList === void 0 ? void 0 : segmentProfitList[0]);
|
|
709
|
+
state.data.brandSegmentData.segmentTech = selectedSegmentTech || (segmentTechList === null || segmentTechList === void 0 ? void 0 : segmentTechList[1]);
|
|
710
710
|
state.data.brandSegmentData.teamSize = selectedTeamSize;
|
|
711
711
|
state.data.verify.responseBody = __assign(__assign({}, state.data.verify.responseBody), { teamSizeList: teamSizeList, segmentLocationList: segmentLocationList, segmentProfitList: segmentProfitList, segmentTechList: segmentTechList });
|
|
712
712
|
})
|
|
@@ -944,23 +944,27 @@ export var connectSlice = createSlice({
|
|
|
944
944
|
state.error = null;
|
|
945
945
|
var _a = action.payload, formData = _a.formData, response = _a.response;
|
|
946
946
|
var _b = response || {}, segment_location_list = _b.segment_location_list, segment_profit_list = _b.segment_profit_list, segment_tech_list = _b.segment_tech_list, team_size_list = _b.team_size_list, brand = _b.brand;
|
|
947
|
-
|
|
947
|
+
var selectedSegmentLocation = segment_location_list === null || segment_location_list === void 0 ? void 0 : segment_location_list.find(function (location) {
|
|
948
948
|
var _a, _b;
|
|
949
949
|
return location.id === ((_b = (_a = brand === null || brand === void 0 ? void 0 : brand.segment) === null || _a === void 0 ? void 0 : _a.location_type) === null || _b === void 0 ? void 0 : _b.id);
|
|
950
950
|
});
|
|
951
|
-
|
|
951
|
+
var selectedSegmentProfit = segment_profit_list === null || segment_profit_list === void 0 ? void 0 : segment_profit_list.find(function (profit) {
|
|
952
952
|
var _a, _b;
|
|
953
953
|
return profit.id === ((_b = (_a = brand === null || brand === void 0 ? void 0 : brand.segment) === null || _a === void 0 ? void 0 : _a.profit_type) === null || _b === void 0 ? void 0 : _b.id);
|
|
954
954
|
});
|
|
955
|
-
|
|
955
|
+
var selectedSegmentTech = segment_tech_list === null || segment_tech_list === void 0 ? void 0 : segment_tech_list.find(function (tech) {
|
|
956
956
|
var _a, _b;
|
|
957
957
|
return tech.id === ((_b = (_a = brand === null || brand === void 0 ? void 0 : brand.segment) === null || _a === void 0 ? void 0 : _a.tech_type) === null || _b === void 0 ? void 0 : _b.id);
|
|
958
958
|
});
|
|
959
|
-
|
|
959
|
+
var selectedTeamSize = team_size_list === null || team_size_list === void 0 ? void 0 : team_size_list.find(function (_a) {
|
|
960
960
|
var _b, _c;
|
|
961
961
|
var id = _a.id;
|
|
962
962
|
return ((_c = (_b = brand === null || brand === void 0 ? void 0 : brand.segment) === null || _b === void 0 ? void 0 : _b.team) === null || _c === void 0 ? void 0 : _c.id) === id;
|
|
963
963
|
});
|
|
964
|
+
state.data.brandSegmentData.segmentLocation = selectedSegmentLocation || (segment_location_list === null || segment_location_list === void 0 ? void 0 : segment_location_list[0]);
|
|
965
|
+
state.data.brandSegmentData.segmentProfit = selectedSegmentProfit || (segment_profit_list === null || segment_profit_list === void 0 ? void 0 : segment_profit_list[0]);
|
|
966
|
+
state.data.brandSegmentData.segmentTech = selectedSegmentTech || (segment_tech_list === null || segment_tech_list === void 0 ? void 0 : segment_tech_list[1]);
|
|
967
|
+
state.data.brandSegmentData.teamSize = selectedTeamSize;
|
|
964
968
|
state.data.brandData = __assign(__assign({}, formData), { responseBody: __assign(__assign({}, state.data.brandData.responseBody), { brand: brand }) });
|
|
965
969
|
state.data.brandSegmentData.responseBody = { segment_location_list: segment_location_list, segment_profit_list: segment_profit_list, segment_tech_list: segment_tech_list, team_size_list: team_size_list };
|
|
966
970
|
})
|