refactor(frontend): Algemene linting fouten

This commit is contained in:
Tibo De Peuter 2025-03-23 12:04:54 +01:00
parent 8efce6bee0
commit dd1000c662
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
9 changed files with 26 additions and 25 deletions

View file

@ -20,13 +20,13 @@ const router = createRouter({
{
path: "/",
name: "home",
component: () => import("../views/HomePage.vue"),
component: async (): Promise<unknown> => import("../views/HomePage.vue"),
meta: { requiresAuth: false },
},
{
path: "/login",
name: "LoginPage",
component: () => import("../views/LoginPage.vue"),
component: async (): Promise<unknown> => import("../views/LoginPage.vue"),
meta: { requiresAuth: false },
},
{
@ -108,7 +108,7 @@ const router = createRouter({
],
});
router.beforeEach(async (to, from, next) => {
router.beforeEach(async (to, _from, next) => {
// Verify if user is logged in before accessing certain routes
if (to.meta.requiresAuth) {
if (!authState.isLoggedIn.value) {