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, update: (data) => data.searchEvents,
skip() { skip() {
return ( return (
this.currentUser?.isLoggedIn === false && !this.currentUser?.isLoggedIn ||
this.loggedUser?.settings?.location?.geohash && !this.loggedUser?.settings?.location?.geohash ||
this.loggedUser?.settings?.location?.radius !this.loggedUser?.settings?.location?.radius
); );
}, },
}, },