little fix

This commit is contained in:
SimonGschnell
2024-02-14 09:01:40 +01:00
parent bfba05753e
commit 65a9b8c80f
2 changed files with 4 additions and 4 deletions
@@ -32,7 +32,7 @@ export default {
//? if the adresse was already saved
return false;
}
return this.zustellAdressenCount>0 && this.data.zustelladresse;
return this.zustellAdressenCount.length && this.data.zustelladresse;
}
//? if this.zustellAdressenCount is still not set by the api call and is still null
return false;
@@ -62,7 +62,7 @@ export default {
created(){
Vue.$fhcapi.UserData.getZustellAdresse().then(res => {
this.zustellAdressenCount = res.data?.length;
this.zustellAdressenCount = res.data;
})
this.originalValue = JSON.stringify(this.data);
@@ -35,7 +35,7 @@ export default {
//? if the adresse was already saved
return false;
}
return this.zustellKontaktCount>0 && this.data.zustellung;
return this.zustellKontaktCount.length && this.data.zustellung;
}
//? if this.zustellAdressenCount is still not set by the api call and is still null
return false;
@@ -52,7 +52,7 @@ export default {
Vue.$fhcapi.UserData.getZustellKontakt().then(res => {
this.zustellKontaktCount = res.data?.length;
this.zustellKontaktCount = res.data;
})
this.originalValue = JSON.stringify(this.data);