diff --git a/lib/www/client/source/src/App.vue b/lib/www/client/source/src/App.vue index 96b18ba..b65b0d7 100644 --- a/lib/www/client/source/src/App.vue +++ b/lib/www/client/source/src/App.vue @@ -54,7 +54,7 @@ export default { computed: { snackText () { return this.$store.state.snack.snackText }, snackColour () { return this.$store.state.snack.snackColour }, - ...mapGetters(["serverEvent"]) + ...mapGetters(["user", "serverEvent"]) }, watch: { @@ -96,7 +96,9 @@ export default { // Local Storage values are always strings this.$vuetify.theme.dark = localStorage.getItem("darkTheme") == "true"; await this.setCredentials(); - this.refreshProjects(); + if (this.user) { + this.refreshProjects(); + } } };