abmp-npm 1.6.3 → 1.6.4

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abmp-npm",
3
- "version": "1.6.3",
3
+ "version": "1.6.4",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -505,10 +505,11 @@ async function personalDetailsFormOnReady({
505
505
  }
506
506
  const $saveDataButton = $w(buttonSelector);
507
507
 
508
- let isUrlValid = true,
509
- isEmailValid = true,
510
- isNameValid = true,
511
- isSlugValid = true;
508
+ let isUrlValid = true;
509
+ let isEmailValid = true;
510
+ let isNameValid = true;
511
+ // Use the outer isSlugValid variable (declared at function scope)
512
+
512
513
  if (formDataType === FORM_SECTION_HANDLER_MAP.CONTACT_BOOKING.section) {
513
514
  isEmailValid = $w('#contactFormEmailInput').valid;
514
515
  isUrlValid =
@@ -30,4 +30,3 @@ module.exports = {
30
30
  handleOnCustomValidation,
31
31
  isNotValidUrl,
32
32
  };
33
-