diff --git a/src/components/FacilityAddressModal.vue b/src/components/FacilityAddressModal.vue index f756fcd1..06f3a67d 100644 --- a/src/components/FacilityAddressModal.vue +++ b/src/components/FacilityAddressModal.vue @@ -44,14 +44,16 @@ - + + {{ translate("Zipcode") }} * + {{ translate("Contact details") }} - {{ telecomNumberValue?.countryCode }} + {{ telecomNumberValue?.countryCode }} @@ -150,7 +152,7 @@ export default defineComponent({ async saveContact() { let resp, postalAddress = ''; - if(!this.address?.address1 || !this.address?.city) { + if(!this.address?.address1 || !this.address?.city || !this.address?.postalCode) { showToast("Please fill all the required fields.") return } diff --git a/src/views/AddFacilityAddress.vue b/src/views/AddFacilityAddress.vue index 289063b6..060b6361 100644 --- a/src/views/AddFacilityAddress.vue +++ b/src/views/AddFacilityAddress.vue @@ -30,7 +30,9 @@ - + + {{ translate('Zipcode') }} * + @@ -48,7 +50,7 @@ - {{ countryCode }} + {{ countryCode }} @@ -173,7 +175,7 @@ export default defineComponent({ methods: { async addAddress() { let resp; - if (!this.formData.address1 || !this.formData.city) { + if (!this.formData.address1 || !this.formData.city || !this.formData.postalCode) { showToast("Please fill all the required fields.") return }