@mychoice/mychoice-sdk-store 2.1.51 → 2.1.58
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/dist/cjs/index.js +140 -65
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/states/reducers/states/formStates/FormLifeState/CoverageState/actions.d.ts +3 -1
- package/dist/cjs/states/reducers/states/formStates/FormLifeState/CoverageState/interfaces.d.ts +14 -0
- package/dist/esm/index.js +140 -65
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/states/reducers/states/formStates/FormLifeState/CoverageState/actions.d.ts +3 -1
- package/dist/esm/states/reducers/states/formStates/FormLifeState/CoverageState/interfaces.d.ts +14 -0
- package/dist/index.d.ts +17 -1
- package/package.json +3 -3
- package/dist/cjs/handlers/dataHandlers/QuoteDataHandler/QuoteDataHandler.d.ts +0 -2
- package/dist/cjs/states/reducers/states/formStates/FormHomeState/AddressState/actions.d.ts +0 -9
- package/dist/cjs/states/reducers/states/formStates/FormHomeState/AddressState/hoox.d.ts +0 -2
- package/dist/cjs/states/reducers/states/formStates/FormHomeState/AddressState/index.d.ts +0 -1
- package/dist/cjs/states/reducers/states/formStates/FormHomeState/AddressState/initialState.d.ts +0 -2
- package/dist/cjs/states/reducers/states/formStates/FormHomeState/AddressState/interfaces.d.ts +0 -52
- package/dist/cjs/states/reducers/states/formStates/FormHomeState/AddressState/localStore.d.ts +0 -3
- package/dist/cjs/states/reducers/states/formStates/FormHomeState/AddressState/reducer.d.ts +0 -2
- package/dist/esm/handlers/dataHandlers/QuoteDataHandler/QuoteDataHandler.d.ts +0 -2
- package/dist/esm/states/reducers/states/formStates/FormHomeState/AddressState/actions.d.ts +0 -9
- package/dist/esm/states/reducers/states/formStates/FormHomeState/AddressState/hoox.d.ts +0 -2
- package/dist/esm/states/reducers/states/formStates/FormHomeState/AddressState/index.d.ts +0 -1
- package/dist/esm/states/reducers/states/formStates/FormHomeState/AddressState/initialState.d.ts +0 -2
- package/dist/esm/states/reducers/states/formStates/FormHomeState/AddressState/interfaces.d.ts +0 -52
- package/dist/esm/states/reducers/states/formStates/FormHomeState/AddressState/localStore.d.ts +0 -3
- package/dist/esm/states/reducers/states/formStates/FormHomeState/AddressState/reducer.d.ts +0 -2
package/dist/cjs/index.js
CHANGED
|
@@ -2962,6 +2962,8 @@ const formLifeCoverageStateInitialState = {
|
|
|
2962
2962
|
province: '',
|
|
2963
2963
|
type: '',
|
|
2964
2964
|
coverage: '',
|
|
2965
|
+
city: '',
|
|
2966
|
+
postalCode: '',
|
|
2965
2967
|
inValidation: false,
|
|
2966
2968
|
isValid: false,
|
|
2967
2969
|
};
|
|
@@ -2975,6 +2977,8 @@ exports.StoreFormLifeCoverageActionTypes = void 0;
|
|
|
2975
2977
|
StoreFormLifeCoverageActionTypes["FormLifeCoverageValidate"] = "FormLifeCoverageValidate";
|
|
2976
2978
|
StoreFormLifeCoverageActionTypes["FormLifeCoverageValidateSet"] = "FormLifeCoverageValidateSet";
|
|
2977
2979
|
StoreFormLifeCoverageActionTypes["FormLifeCoverageClear"] = "FormLifeCoverageClear";
|
|
2980
|
+
StoreFormLifeCoverageActionTypes["FormLifeCitySelect"] = "FormLifeCitySelectFormLifeCityeSelect";
|
|
2981
|
+
StoreFormLifeCoverageActionTypes["FormLifePostalCodeSelect"] = "FormLifePostalCodeSelect";
|
|
2978
2982
|
})(exports.StoreFormLifeCoverageActionTypes || (exports.StoreFormLifeCoverageActionTypes = {}));
|
|
2979
2983
|
|
|
2980
2984
|
const localStateName$3 = 'life_coverage';
|
|
@@ -3003,8 +3007,14 @@ const formLifeCoverageStateReducer = (state = { ...formLifeCoverageStateInitialS
|
|
|
3003
3007
|
return setLocalCoverages(action.localIndex, setStateProperty(state, 'type', action.payload.type));
|
|
3004
3008
|
case exports.StoreFormLifeCoverageActionTypes.FormLifeCoverageSelect:
|
|
3005
3009
|
return setLocalCoverages(action.localIndex, setStateProperty(state, 'coverage', action.payload.coverage));
|
|
3010
|
+
case exports.StoreFormLifeCoverageActionTypes.FormLifeCitySelect:
|
|
3011
|
+
return setLocalCoverages(action.localIndex, setStateProperty(state, 'city', action.payload.city));
|
|
3012
|
+
case exports.StoreFormLifeCoverageActionTypes.FormLifePostalCodeSelect:
|
|
3013
|
+
return setLocalCoverages(action.localIndex, setStateProperty(state, 'postalCode', action.payload.postalCode));
|
|
3006
3014
|
case exports.StoreFormLifeCoverageActionTypes.FormLifeCoverageClear:
|
|
3007
|
-
return setLocalCoverages(action.localIndex, {
|
|
3015
|
+
return setLocalCoverages(action.localIndex, {
|
|
3016
|
+
...formLifeCoverageStateInitialState,
|
|
3017
|
+
});
|
|
3008
3018
|
default:
|
|
3009
3019
|
return state;
|
|
3010
3020
|
}
|
|
@@ -4219,50 +4229,85 @@ const ClearFormDataHandler = () => {
|
|
|
4219
4229
|
const { dispatchCoverageState } = useStoreFormLifeCoverage();
|
|
4220
4230
|
const { dispatchApplicantState } = useStoreFormLifeApplicant();
|
|
4221
4231
|
const { quoteState: lifeQuoteState, dispatchQuoteState: dispatchLifeQuoteState } = useStoreFormLifeQuote();
|
|
4232
|
+
const { dispatchPostalState: dispatchLifePostalState } = useStoreFormLifePostal();
|
|
4222
4233
|
const { dispatchAppModalState } = useStoreAppModal();
|
|
4223
|
-
const { appConfigState: { localIndex, insuranceType, appType } } = useStoreAppConfig();
|
|
4234
|
+
const { appConfigState: { localIndex, insuranceType, appType }, } = useStoreAppConfig();
|
|
4224
4235
|
const navigate = reactRouterDom.useNavigate();
|
|
4225
4236
|
const isThebig = appType === mychoiceSdkComponents.AppTypes.TheBig;
|
|
4226
4237
|
const maxHours = isThebig ? mychoiceSdkComponents.MAX_LOCAL_STORAGE_HOURS_THEBIG : mychoiceSdkComponents.MAX_LOCAL_STORAGE_HOURS;
|
|
4227
4238
|
const clearFormData = () => {
|
|
4228
4239
|
if (insuranceType === mychoiceSdkComponents.InsuranceTypes.Car) {
|
|
4229
|
-
dispatchCarQuoteState({
|
|
4230
|
-
|
|
4231
|
-
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
|
|
4236
|
-
|
|
4237
|
-
|
|
4238
|
-
|
|
4239
|
-
|
|
4240
|
-
|
|
4240
|
+
dispatchCarQuoteState({
|
|
4241
|
+
type: exports.StoreFormCarQuoteActionTypes.FormCarQuoteClear,
|
|
4242
|
+
});
|
|
4243
|
+
dispatchCarDiscountState({
|
|
4244
|
+
type: exports.StoreFormCarDiscountActionTypes.FormCarDiscountClear,
|
|
4245
|
+
});
|
|
4246
|
+
dispatchDriverBaseState({
|
|
4247
|
+
type: exports.StoreFormCarDriverBaseActionTypes.FormCarDriverClear,
|
|
4248
|
+
});
|
|
4249
|
+
dispatchVehicleState({
|
|
4250
|
+
type: exports.StoreFormCarVehicleActionTypes.FormCarVehicleClear,
|
|
4251
|
+
});
|
|
4252
|
+
dispatchCarPostalState({
|
|
4253
|
+
type: exports.StoreFormCarPostalActionTypes.FormCarPostalClear,
|
|
4254
|
+
});
|
|
4255
|
+
}
|
|
4256
|
+
if (insuranceType === mychoiceSdkComponents.InsuranceTypes.Home ||
|
|
4257
|
+
insuranceType === mychoiceSdkComponents.InsuranceTypes.Condo ||
|
|
4258
|
+
insuranceType === mychoiceSdkComponents.InsuranceTypes.Tenant) {
|
|
4259
|
+
dispatchHomeQuoteState({
|
|
4260
|
+
type: exports.StoreFormHomeQuoteActionTypes.FormHomeQuoteClear,
|
|
4261
|
+
});
|
|
4262
|
+
dispatchHomeDiscountState({
|
|
4263
|
+
type: exports.StoreFormHomeDiscountActionTypes.FormHomeDiscountClear,
|
|
4264
|
+
});
|
|
4265
|
+
dispatchDwellingState({
|
|
4266
|
+
type: exports.StoreFormHomeDwellingActionTypes.FormHomeDwellingClear,
|
|
4267
|
+
payload: { type: insuranceType },
|
|
4268
|
+
});
|
|
4269
|
+
dispatchApplicantBaseState({
|
|
4270
|
+
type: exports.StoreFormHomeApplicantBaseActionTypes.FormHomeApplicantClear,
|
|
4271
|
+
});
|
|
4272
|
+
dispatchHomePostalState({
|
|
4273
|
+
type: exports.StoreFormHomePostalActionTypes.FormHomePostalClear,
|
|
4274
|
+
});
|
|
4241
4275
|
}
|
|
4242
4276
|
if (insuranceType === mychoiceSdkComponents.InsuranceTypes.Life) {
|
|
4243
|
-
dispatchLifeQuoteState({
|
|
4244
|
-
|
|
4245
|
-
|
|
4277
|
+
dispatchLifeQuoteState({
|
|
4278
|
+
type: exports.StoreFormLifeQuoteActionTypes.FormLifeQuoteClear,
|
|
4279
|
+
});
|
|
4280
|
+
dispatchApplicantState({
|
|
4281
|
+
type: exports.StoreFormLifeApplicantActionTypes.FormLifeApplicantClear,
|
|
4282
|
+
});
|
|
4283
|
+
dispatchCoverageState({
|
|
4284
|
+
type: exports.StoreFormLifeCoverageActionTypes.FormLifeCoverageClear,
|
|
4285
|
+
});
|
|
4286
|
+
dispatchLifePostalState({
|
|
4287
|
+
type: exports.StoreFormLifePostalActionTypes.FormLifePostalClear,
|
|
4288
|
+
});
|
|
4246
4289
|
}
|
|
4247
4290
|
};
|
|
4248
4291
|
const checkIsExpiredWithClear = () => {
|
|
4249
4292
|
if (insuranceType === mychoiceSdkComponents.InsuranceTypes.Car) {
|
|
4250
4293
|
const inactiveHours = differenceInHoursFromNow(carQuoteState.requestDate);
|
|
4251
|
-
if (carQuoteState.isRequested &&
|
|
4294
|
+
if (carQuoteState.isRequested && inactiveHours > maxHours - 1) {
|
|
4252
4295
|
clearFormData();
|
|
4253
4296
|
navigate(`/${localIndex}/${insuranceType}/`);
|
|
4254
4297
|
}
|
|
4255
4298
|
}
|
|
4256
|
-
if (insuranceType === mychoiceSdkComponents.InsuranceTypes.Home ||
|
|
4299
|
+
if (insuranceType === mychoiceSdkComponents.InsuranceTypes.Home ||
|
|
4300
|
+
insuranceType === mychoiceSdkComponents.InsuranceTypes.Condo ||
|
|
4301
|
+
insuranceType === mychoiceSdkComponents.InsuranceTypes.Tenant) {
|
|
4257
4302
|
const inactiveHours = differenceInHoursFromNow(homeQuoteState.requestDate);
|
|
4258
|
-
if (homeQuoteState.isRequested &&
|
|
4303
|
+
if (homeQuoteState.isRequested && inactiveHours > maxHours - 1) {
|
|
4259
4304
|
clearFormData();
|
|
4260
4305
|
navigate(`/${localIndex}/${insuranceType}/`);
|
|
4261
4306
|
}
|
|
4262
4307
|
}
|
|
4263
4308
|
if (insuranceType === mychoiceSdkComponents.InsuranceTypes.Life) {
|
|
4264
4309
|
const inactiveHours = differenceInHoursFromNow(lifeQuoteState.requestDate);
|
|
4265
|
-
if (lifeQuoteState.isRequested &&
|
|
4310
|
+
if (lifeQuoteState.isRequested && inactiveHours > maxHours - 1) {
|
|
4266
4311
|
clearFormData();
|
|
4267
4312
|
navigate(`/${localIndex}/${insuranceType}/`);
|
|
4268
4313
|
}
|
|
@@ -4281,15 +4326,17 @@ const ClearFormDataHandler = () => {
|
|
|
4281
4326
|
const checkIsExpired = () => {
|
|
4282
4327
|
if (insuranceType === mychoiceSdkComponents.InsuranceTypes.Car) {
|
|
4283
4328
|
const inactiveHours = differenceInHoursFromNow(carQuoteState.requestDate);
|
|
4284
|
-
return carQuoteState.isRequested &&
|
|
4329
|
+
return carQuoteState.isRequested && inactiveHours > maxHours - 1;
|
|
4285
4330
|
}
|
|
4286
|
-
if (insuranceType === mychoiceSdkComponents.InsuranceTypes.Home ||
|
|
4331
|
+
if (insuranceType === mychoiceSdkComponents.InsuranceTypes.Home ||
|
|
4332
|
+
insuranceType === mychoiceSdkComponents.InsuranceTypes.Condo ||
|
|
4333
|
+
insuranceType === mychoiceSdkComponents.InsuranceTypes.Tenant) {
|
|
4287
4334
|
const inactiveHours = differenceInHoursFromNow(homeQuoteState.requestDate);
|
|
4288
|
-
return homeQuoteState.isRequested &&
|
|
4335
|
+
return homeQuoteState.isRequested && inactiveHours > maxHours - 1;
|
|
4289
4336
|
}
|
|
4290
4337
|
if (insuranceType === mychoiceSdkComponents.InsuranceTypes.Life) {
|
|
4291
4338
|
const inactiveHours = differenceInHoursFromNow(lifeQuoteState.requestDate);
|
|
4292
|
-
return lifeQuoteState.isRequested &&
|
|
4339
|
+
return lifeQuoteState.isRequested && inactiveHours > maxHours - 1;
|
|
4293
4340
|
}
|
|
4294
4341
|
return false;
|
|
4295
4342
|
};
|
|
@@ -4354,7 +4401,8 @@ const useHandlerPartner = () => {
|
|
|
4354
4401
|
const useHandlerPostal = (insuranceType) => {
|
|
4355
4402
|
const { dispatchPostalState: dispatchCarPostalState } = useStoreFormCarPostal();
|
|
4356
4403
|
const { dispatchPostalState: dispatchHomePostalState } = useStoreFormHomePostal();
|
|
4357
|
-
|
|
4404
|
+
const { dispatchPostalState: dispatchLifePostalState } = useStoreFormLifePostal();
|
|
4405
|
+
const { dispatchCoverageState: dispatchLifeCoverageState } = useStoreFormLifeCoverage();
|
|
4358
4406
|
const { dwellingState, dispatchDwellingState } = useStoreFormHomeDwelling();
|
|
4359
4407
|
const { dispatchConfigState: dispatchCarConfigState } = useStoreFormCarConfig();
|
|
4360
4408
|
const { dispatchAppModalState } = useStoreAppModal();
|
|
@@ -4362,7 +4410,7 @@ const useHandlerPostal = (insuranceType) => {
|
|
|
4362
4410
|
...initialHandlerRequestState,
|
|
4363
4411
|
});
|
|
4364
4412
|
const { cancelToken } = useCancelToken();
|
|
4365
|
-
const { status, successMessage, responseData, errorMessage, isFirstRequest, responseError
|
|
4413
|
+
const { status, successMessage, responseData, errorMessage, isFirstRequest, responseError } = requestState;
|
|
4366
4414
|
const getPostal = async (postalCode) => {
|
|
4367
4415
|
setRequestState({ type: DataHandlerActionTypes.SetLoading, payload: true });
|
|
4368
4416
|
try {
|
|
@@ -4445,36 +4493,51 @@ const useHandlerPostal = (insuranceType) => {
|
|
|
4445
4493
|
data: response.data,
|
|
4446
4494
|
};
|
|
4447
4495
|
}
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4471
|
-
|
|
4472
|
-
|
|
4473
|
-
|
|
4474
|
-
|
|
4475
|
-
|
|
4476
|
-
|
|
4477
|
-
|
|
4496
|
+
if (insuranceType === mychoiceSdkComponents.InsuranceTypes.Life) {
|
|
4497
|
+
const response = await httpRequest({
|
|
4498
|
+
url: `${mychoiceSdkComponents.API_FORM_LIFE.GET_POSTAL}?postal_code=${postalCode}`,
|
|
4499
|
+
method: mychoiceSdkComponents.RequestTypes.Get,
|
|
4500
|
+
withoutToken: true,
|
|
4501
|
+
cancelToken,
|
|
4502
|
+
});
|
|
4503
|
+
if (response.data?.error) {
|
|
4504
|
+
setRequestState({
|
|
4505
|
+
type: DataHandlerActionTypes.SetError,
|
|
4506
|
+
payload: response.data.error,
|
|
4507
|
+
});
|
|
4508
|
+
return { errorMessage: response.data.error };
|
|
4509
|
+
}
|
|
4510
|
+
if (!('provinceCode' in response.data)) {
|
|
4511
|
+
setRequestState({
|
|
4512
|
+
type: DataHandlerActionTypes.SetError,
|
|
4513
|
+
payload: 'Something went wrong! Please try again.',
|
|
4514
|
+
});
|
|
4515
|
+
return { errorMessage: 'Something went wrong! Please try again.' };
|
|
4516
|
+
}
|
|
4517
|
+
dispatchLifePostalState({
|
|
4518
|
+
type: exports.StoreFormLifePostalActionTypes.FormLifePostalSet,
|
|
4519
|
+
payload: { ...response.data },
|
|
4520
|
+
});
|
|
4521
|
+
dispatchLifeCoverageState({
|
|
4522
|
+
type: exports.StoreFormLifeCoverageActionTypes.FormLifeProvinceSelect,
|
|
4523
|
+
payload: { province: response.data.provinceCode },
|
|
4524
|
+
});
|
|
4525
|
+
dispatchLifeCoverageState({
|
|
4526
|
+
type: exports.StoreFormLifeCoverageActionTypes.FormLifeCitySelect,
|
|
4527
|
+
payload: { city: response.data.city },
|
|
4528
|
+
});
|
|
4529
|
+
dispatchLifeCoverageState({
|
|
4530
|
+
type: exports.StoreFormLifeCoverageActionTypes.FormLifePostalCodeSelect,
|
|
4531
|
+
payload: { postalCode: response.data.postalCode },
|
|
4532
|
+
});
|
|
4533
|
+
dispatchAppModalState({
|
|
4534
|
+
type: exports.StoreConfigAppModalActionTypes.AppModalClose,
|
|
4535
|
+
});
|
|
4536
|
+
setRequestState({
|
|
4537
|
+
type: DataHandlerActionTypes.SetSuccess,
|
|
4538
|
+
});
|
|
4539
|
+
return { errorMessage: '' };
|
|
4540
|
+
}
|
|
4478
4541
|
return { errorMessage: 'No Selected Insurance' };
|
|
4479
4542
|
}
|
|
4480
4543
|
catch (error) {
|
|
@@ -4525,10 +4588,7 @@ const useHandlerPostal = (insuranceType) => {
|
|
|
4525
4588
|
exteriorFinish: dataExteriorFinish || exteriorFinish,
|
|
4526
4589
|
garageType: dataGarageType || garageType,
|
|
4527
4590
|
livingArea: dataLivingArea || livingArea,
|
|
4528
|
-
heatings: [
|
|
4529
|
-
{ type: primaryHeating || heatings[0].type },
|
|
4530
|
-
{ type: auxiliaryHeating || heatings[1].type },
|
|
4531
|
-
],
|
|
4591
|
+
heatings: [{ type: primaryHeating || heatings[0].type }, { type: auxiliaryHeating || heatings[1].type }],
|
|
4532
4592
|
replacementCost: dataReplacementCost || replacementCost,
|
|
4533
4593
|
storeysCount: +dataStoreysCount || storeysCount,
|
|
4534
4594
|
roofReplacedYear: roofYear,
|
|
@@ -5577,7 +5637,7 @@ const LifeQuoteDataHandler = () => {
|
|
|
5577
5637
|
const [requestState, setRequestState] = react.useReducer(dataHandlerReducer, {
|
|
5578
5638
|
...initialHandlerRequestState,
|
|
5579
5639
|
});
|
|
5580
|
-
const { status, successMessage, responseData, errorMessage, isFirstRequest, responseError
|
|
5640
|
+
const { status, successMessage, responseData, errorMessage, isFirstRequest, responseError } = requestState;
|
|
5581
5641
|
const { cancelToken } = useCancelToken();
|
|
5582
5642
|
const openLoader = (loaderDescription = '') => {
|
|
5583
5643
|
dispatchAppLoaderState({
|
|
@@ -5595,11 +5655,25 @@ const LifeQuoteDataHandler = () => {
|
|
|
5595
5655
|
delete applicant.isValid;
|
|
5596
5656
|
delete applicant.inValidation;
|
|
5597
5657
|
// In life insurance we haven't mapping from backend,
|
|
5598
|
-
// and structure
|
|
5658
|
+
// and structure of request body in this step will be
|
|
5599
5659
|
// the same as endpoint body,
|
|
5600
5660
|
// and we will ignore axios.interceptors formatting
|
|
5661
|
+
const stateMapper = {
|
|
5662
|
+
AB: '1',
|
|
5663
|
+
BC: '2',
|
|
5664
|
+
MB: '3',
|
|
5665
|
+
NB: '4',
|
|
5666
|
+
NF: '5',
|
|
5667
|
+
NS: '6',
|
|
5668
|
+
NT: '7',
|
|
5669
|
+
ON: '9',
|
|
5670
|
+
PE: '10',
|
|
5671
|
+
QC: '11',
|
|
5672
|
+
SK: '12',
|
|
5673
|
+
YT: '13',
|
|
5674
|
+
};
|
|
5601
5675
|
const requestBody = {
|
|
5602
|
-
State: coverage.province,
|
|
5676
|
+
State: stateMapper[coverage.province],
|
|
5603
5677
|
BirthMonth: Number(applicant.birthMonth).toString(),
|
|
5604
5678
|
Birthday: Number(applicant.birthDay).toString(),
|
|
5605
5679
|
BirthYear: Number(applicant.birthYear).toString(),
|
|
@@ -5609,6 +5683,8 @@ const LifeQuoteDataHandler = () => {
|
|
|
5609
5683
|
NewCategory: coverage.type,
|
|
5610
5684
|
FaceAmount: Number(coverage.coverage),
|
|
5611
5685
|
ModeUsed: 'M',
|
|
5686
|
+
City: coverage.city,
|
|
5687
|
+
PostalCode: coverage.postalCode,
|
|
5612
5688
|
email_to: applicant.emailTo.email,
|
|
5613
5689
|
quoter_info: {
|
|
5614
5690
|
first_name: applicant.quoterInfo?.firstName,
|
|
@@ -5647,7 +5723,6 @@ const LifeQuoteDataHandler = () => {
|
|
|
5647
5723
|
else {
|
|
5648
5724
|
openLoader('Please wait while we fetch your lowest rates from our insurance partners.');
|
|
5649
5725
|
}
|
|
5650
|
-
console.log('isRecalc', isRecalc, quoteState);
|
|
5651
5726
|
const requestBody = constructRequestBody(); // isRecalc is removed in life insurance
|
|
5652
5727
|
if (requestBody) {
|
|
5653
5728
|
try {
|