Merge branch 'fix-homepage-with-no-location-setting' into 'master'

Fix homepage with no location setting

See merge request framasoft/mobilizon!863
This commit is contained in:
Thomas Citharel 2021-03-16 17:27:34 +00:00
commit 03ebde28f4

View File

@ -390,9 +390,9 @@ import Subtitle from "../components/Utils/Subtitle.vue";
update: (data) => data.searchEvents,
skip() {
return (
this.currentUser?.isLoggedIn === false &&
this.loggedUser?.settings?.location?.geohash &&
this.loggedUser?.settings?.location?.radius
!this.currentUser?.isLoggedIn ||
!this.loggedUser?.settings?.location?.geohash ||
!this.loggedUser?.settings?.location?.radius
);
},
},