diff --git a/public/js/components/Cis/Profil/ProfilComponents/EditAdresse.js b/public/js/components/Cis/Profil/ProfilComponents/EditAdresse.js index 6a64452e0..466ba18a6 100755 --- a/public/js/components/Cis/Profil/ProfilComponents/EditAdresse.js +++ b/public/js/components/Cis/Profil/ProfilComponents/EditAdresse.js @@ -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); diff --git a/public/js/components/Cis/Profil/ProfilComponents/EditKontakt.js b/public/js/components/Cis/Profil/ProfilComponents/EditKontakt.js index 491319aae..ff91517c1 100755 --- a/public/js/components/Cis/Profil/ProfilComponents/EditKontakt.js +++ b/public/js/components/Cis/Profil/ProfilComponents/EditKontakt.js @@ -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);