@mychoice/mychoice-sdk-modules 2.1.17 → 2.1.18
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 +3 -4
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/init/StoryAppWrapper/StoryAppWrapper.d.ts +1 -1
- package/dist/cjs/init/StoryAppWrapper/interfaces.d.ts +1 -1
- package/dist/cjs/insurances/car/pages/{three-point-five/BestOfferFirst.d.ts → quote/PageAllQuotes.d.ts} +1 -1
- package/dist/cjs/insurances/car/pages/quote/sections/blocks/BlockConfirmImages.d.ts +1 -0
- package/dist/cjs/insurances/car/pages/quote/sections/blocks/BlockQuoteStatistics.d.ts +2 -0
- package/dist/cjs/shared/sections/quotes/OfferSection/BestOfferSection.d.ts +3 -0
- package/dist/cjs/shared/sections/quotes/OfferSection/DummyOfferSection.d.ts +3 -0
- package/dist/esm/index.js +3 -4
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/init/StoryAppWrapper/StoryAppWrapper.d.ts +1 -1
- package/dist/esm/init/StoryAppWrapper/interfaces.d.ts +1 -1
- package/dist/esm/insurances/car/pages/{three-point-five/BestOfferFirst.d.ts → quote/PageAllQuotes.d.ts} +1 -1
- package/dist/esm/insurances/car/pages/quote/sections/blocks/BlockConfirmImages.d.ts +1 -0
- package/dist/esm/insurances/car/pages/quote/sections/blocks/BlockQuoteStatistics.d.ts +2 -0
- package/dist/esm/shared/sections/quotes/OfferSection/BestOfferSection.d.ts +3 -0
- package/dist/esm/shared/sections/quotes/OfferSection/DummyOfferSection.d.ts +3 -0
- package/package.json +2 -2
- package/dist/cjs/insurances/car/pages/three-point-five/index.d.ts +0 -1
- package/dist/cjs/insurances/car/pages/three-point-five/sections/OfferSectionCopy.d.ts +0 -3
- package/dist/cjs/insurances/car/pages/three-point-five/sections/OfferSectionDupe.d.ts +0 -3
- package/dist/cjs/insurances/car/pages/three-point-five/sections/index.d.ts +0 -1
- package/dist/esm/insurances/car/pages/three-point-five/index.d.ts +0 -1
- package/dist/esm/insurances/car/pages/three-point-five/sections/OfferSectionCopy.d.ts +0 -3
- package/dist/esm/insurances/car/pages/three-point-five/sections/OfferSectionDupe.d.ts +0 -3
- package/dist/esm/insurances/car/pages/three-point-five/sections/index.d.ts +0 -1
package/dist/cjs/index.js
CHANGED
|
@@ -314,11 +314,10 @@ const ModalPostal = () => {
|
|
|
314
314
|
};
|
|
315
315
|
|
|
316
316
|
const getVehicleYearRange = () => {
|
|
317
|
-
const currentDate = new Date();
|
|
318
317
|
const vehicleYear = [];
|
|
319
|
-
const currentYear =
|
|
318
|
+
const currentYear = 2024;
|
|
320
319
|
const minYear = currentYear - 25;
|
|
321
|
-
for (let year = (
|
|
320
|
+
for (let year = (currentYear); year > minYear; year -= 1) {
|
|
322
321
|
vehicleYear.push({ name: `${year}`, value: `${year}` });
|
|
323
322
|
}
|
|
324
323
|
vehicleYear.push({ name: `${minYear} or older`, value: `${minYear}` });
|
|
@@ -1847,7 +1846,7 @@ const PageCarQuote = () => {
|
|
|
1847
1846
|
const { appDeviceType } = mychoiceSdkStore.useStoreDeviceType();
|
|
1848
1847
|
const { items, quoteConfirm } = quoteState;
|
|
1849
1848
|
const isTheBig = appType === mychoiceSdkComponents.AppTypes.TheBig;
|
|
1850
|
-
const hasConfirmStep = items?.length && !isTheBig && items[0]?.confirmQuote && quoteConfirm;
|
|
1849
|
+
const hasConfirmStep = !!(items?.length && !isTheBig && items[0]?.confirmQuote && quoteConfirm);
|
|
1851
1850
|
const quoteItems = hasConfirmStep ? items?.slice(0, 2) : items;
|
|
1852
1851
|
const showContentWhileLoading = hasConfirmStep ? true : !appLoaderState.isOpen;
|
|
1853
1852
|
mychoiceSdkComponents.useEffectOnce(() => {
|