@paro.io/expert-shared-components 1.7.5 → 1.7.6
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.
|
@@ -56,24 +56,20 @@ const ServiceLinesTemplate = ({ getFreelancerDataResult, createOrUpdateRates, ge
|
|
|
56
56
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
57
57
|
try {
|
|
58
58
|
setLoading(true);
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
getExpertVanityTitles({ fetchPolicy: 'network-only' }),
|
|
62
|
-
]);
|
|
63
|
-
const expertTitles = (_a = expertVanityTitles === null || expertVanityTitles === void 0 ? void 0 : expertVanityTitles.data) === null || _a === void 0 ? void 0 : _a.getExpertVanityTitles;
|
|
64
|
-
setTitleOptions(expertTitles);
|
|
65
|
-
}
|
|
66
|
-
const [freelancerResponse, serviceLinesResponse, ratesResponse] = yield Promise.all([
|
|
59
|
+
const [expertVanityTitles, freelancerResponse, serviceLinesResponse, ratesResponse] = yield Promise.all([
|
|
60
|
+
getExpertVanityTitles({ fetchPolicy: 'network-only' }),
|
|
67
61
|
getFreelancerDataResult({ variables: { legacyFreelancerId: legacyFreelancerId }, skip: !legacyFreelancerId, fetchPolicy: 'network-only' }),
|
|
68
62
|
getServiceLines({ fetchPolicy: 'network-only', }),
|
|
69
63
|
getRatesByExpertId({ variables: { expertId }, skip: !expertId, fetchPolicy: 'network-only' }),
|
|
70
64
|
]);
|
|
71
|
-
setServiceLines(((
|
|
72
|
-
const currentService = (
|
|
73
|
-
const currentRate = (
|
|
74
|
-
const expertRates = (
|
|
75
|
-
setCurrentFeatureStatus((
|
|
65
|
+
setServiceLines(((_a = serviceLinesResponse === null || serviceLinesResponse === void 0 ? void 0 : serviceLinesResponse.data) === null || _a === void 0 ? void 0 : _a.getServiceLines) || serviceLineData);
|
|
66
|
+
const currentService = (_d = (_c = (_b = freelancerResponse === null || freelancerResponse === void 0 ? void 0 : freelancerResponse.data) === null || _b === void 0 ? void 0 : _b.getExpertByLegacyFreelancerId) === null || _c === void 0 ? void 0 : _c.legacyMetadata) === null || _d === void 0 ? void 0 : _d.primaryServiceLine;
|
|
67
|
+
const currentRate = (_g = (_f = (_e = freelancerResponse === null || freelancerResponse === void 0 ? void 0 : freelancerResponse.data) === null || _e === void 0 ? void 0 : _e.getExpertByLegacyFreelancerId) === null || _f === void 0 ? void 0 : _f.legacyMetadata) === null || _g === void 0 ? void 0 : _g.defaultHourlyRate;
|
|
68
|
+
const expertRates = (_h = ratesResponse === null || ratesResponse === void 0 ? void 0 : ratesResponse.data) === null || _h === void 0 ? void 0 : _h.getRatesByExpertId;
|
|
69
|
+
setCurrentFeatureStatus((_k = (_j = freelancerResponse === null || freelancerResponse === void 0 ? void 0 : freelancerResponse.data) === null || _j === void 0 ? void 0 : _j.getExpertByLegacyFreelancerId) === null || _k === void 0 ? void 0 : _k.featureStatus);
|
|
76
70
|
setCurrentServiceRate(currentRate);
|
|
71
|
+
const expertTitles = (_l = expertVanityTitles === null || expertVanityTitles === void 0 ? void 0 : expertVanityTitles.data) === null || _l === void 0 ? void 0 : _l.getExpertVanityTitles;
|
|
72
|
+
setTitleOptions(expertTitles);
|
|
77
73
|
const isTitleExists = (_o = (_m = freelancerResponse === null || freelancerResponse === void 0 ? void 0 : freelancerResponse.data) === null || _m === void 0 ? void 0 : _m.getExpertByLegacyFreelancerId) === null || _o === void 0 ? void 0 : _o.vanityTitle;
|
|
78
74
|
isTitleExists ? setSelectedTitle(isTitleExists) : setValue(1);
|
|
79
75
|
dispatch({
|