Browse Source

fix(MainHeader): changeNightmode not a function

Owen Diffey 3 years ago
parent
commit
f04d00cc4a
1 changed files with 2 additions and 1 deletions
  1. 2 1
      frontend/src/components/layout/MainHeader.vue

+ 2 - 1
frontend/src/components/layout/MainHeader.vue

@@ -168,7 +168,8 @@ export default {
 			this.windowWidth = window.innerWidth;
 		},
 		...mapActions("modalVisibility", ["openModal"]),
-		...mapActions("user/auth", ["logout"])
+		...mapActions("user/auth", ["logout"]),
+		...mapActions("user/preferences", ["changeNightmode"])
 	}
 };
 </script>