Fix homepage with no location setting

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2021-03-16 18:26:49 +01:00
parent 67ced567b1
commit f390af3e95
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

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
);
},
},