project-booster-vue 9.55.3 → 9.55.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": "project-booster-vue",
3
- "version": "9.55.3",
3
+ "version": "9.55.4",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -413,14 +413,14 @@ export default defineComponent({
413
413
  optinOffers: boolean(),
414
414
  });
415
415
 
416
- let isSubmitDisabled = false;
416
+ const isSubmitDisabled = ref(false);
417
417
 
418
418
  const validateAllFields = async (action: any) => {
419
+ isSubmitDisabled.value = true;
420
+
419
421
  await validationSchema
420
422
  .validate(formData.value.values, { abortEarly: false })
421
423
  .then(async () => {
422
- isSubmitDisabled = true;
423
-
424
424
  const leadSaveStatus = await store.dispatch('trezor/sendFormData', {
425
425
  payload: {
426
426
  customer: {
@@ -456,7 +456,7 @@ export default defineComponent({
456
456
  }
457
457
  })
458
458
  .catch((err) => {
459
- isSubmitDisabled = false;
459
+ isSubmitDisabled.value = false;
460
460
 
461
461
  formData.value.errors = {};
462
462