@mychoice/mychoice-sdk-modules 2.1.6 → 2.1.8

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 CHANGED
@@ -1517,7 +1517,7 @@ const BlockNextPageInfo$2 = () => {
1517
1517
  };
1518
1518
 
1519
1519
  const BlockSubmit$2 = ({ className, label, buttonSize, isRecalc = false, }) => {
1520
- const { quoteState: { isRequested } } = mychoiceSdkStore.useStoreFormCarQuote();
1520
+ const { quoteState: { isRequested, quoteConfirm } } = mychoiceSdkStore.useStoreFormCarQuote();
1521
1521
  const { discountState: { isValid } } = mychoiceSdkStore.useStoreFormCarDiscount();
1522
1522
  const { appConfigState: { localIndex, insuranceType } } = mychoiceSdkStore.useStoreAppConfig();
1523
1523
  const navigate = reactRouterDom.useNavigate();
@@ -1525,10 +1525,10 @@ const BlockSubmit$2 = ({ className, label, buttonSize, isRecalc = false, }) => {
1525
1525
  const { carDiscountFormValidate } = mychoiceSdkStore.useValidationCarDiscount();
1526
1526
  const handleGetQuotesClick = () => {
1527
1527
  if (!isValid) {
1528
- carDiscountFormValidate(false, () => postRequestQuote(isRecalc));
1528
+ carDiscountFormValidate(false, () => postRequestQuote(isRecalc, quoteConfirm));
1529
1529
  }
1530
1530
  else if (!isRequested) {
1531
- postRequestQuote(isRecalc);
1531
+ postRequestQuote(isRecalc, quoteConfirm);
1532
1532
  }
1533
1533
  else if (!isRecalc) {
1534
1534
  navigate(`/${localIndex || mychoiceSdkComponents.defaultLocalIndex}/${insuranceType}/quotes`);
@@ -1850,7 +1850,7 @@ const PageCarQuote = () => {
1850
1850
  carDiscountFormValidate();
1851
1851
  }
1852
1852
  if (!quoteState.isRequested) {
1853
- postRequestQuote(false);
1853
+ postRequestQuote(false, quoteConfirm);
1854
1854
  }
1855
1855
  window.scrollTo({
1856
1856
  top: 0,