@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/esm/index.js CHANGED
@@ -1507,7 +1507,7 @@ const BlockNextPageInfo$2 = () => {
1507
1507
  };
1508
1508
 
1509
1509
  const BlockSubmit$2 = ({ className, label, buttonSize, isRecalc = false, }) => {
1510
- const { quoteState: { isRequested } } = useStoreFormCarQuote();
1510
+ const { quoteState: { isRequested, quoteConfirm } } = useStoreFormCarQuote();
1511
1511
  const { discountState: { isValid } } = useStoreFormCarDiscount();
1512
1512
  const { appConfigState: { localIndex, insuranceType } } = useStoreAppConfig();
1513
1513
  const navigate = useNavigate();
@@ -1515,10 +1515,10 @@ const BlockSubmit$2 = ({ className, label, buttonSize, isRecalc = false, }) => {
1515
1515
  const { carDiscountFormValidate } = useValidationCarDiscount();
1516
1516
  const handleGetQuotesClick = () => {
1517
1517
  if (!isValid) {
1518
- carDiscountFormValidate(false, () => postRequestQuote(isRecalc));
1518
+ carDiscountFormValidate(false, () => postRequestQuote(isRecalc, quoteConfirm));
1519
1519
  }
1520
1520
  else if (!isRequested) {
1521
- postRequestQuote(isRecalc);
1521
+ postRequestQuote(isRecalc, quoteConfirm);
1522
1522
  }
1523
1523
  else if (!isRecalc) {
1524
1524
  navigate(`/${localIndex || defaultLocalIndex}/${insuranceType}/quotes`);
@@ -1840,7 +1840,7 @@ const PageCarQuote = () => {
1840
1840
  carDiscountFormValidate();
1841
1841
  }
1842
1842
  if (!quoteState.isRequested) {
1843
- postRequestQuote(false);
1843
+ postRequestQuote(false, quoteConfirm);
1844
1844
  }
1845
1845
  window.scrollTo({
1846
1846
  top: 0,