From e4a53a21e54d4f4f768ec265719810523e3422d9 Mon Sep 17 00:00:00 2001
From: Werner Kramer <werner.kramer@vortech.nl>
Date: Wed, 13 Dec 2023 22:50:03 +0100
Subject: [PATCH] Formatting

---
 src/router/index.ts | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/src/router/index.ts b/src/router/index.ts
index 9b5c526f1..48411877a 100644
--- a/src/router/index.ts
+++ b/src/router/index.ts
@@ -151,12 +151,13 @@ const router = createRouter({
 
 let routesAreInitialized = false
 
-async function handleAuthorization(
-  to: RouteLocationNormalized,
-) {
+async function handleAuthorization(to: RouteLocationNormalized) {
   const currentUser = await authenticationManager.userManager.getUser()
   if (currentUser === null) {
-    return { name: 'Login', query: { redirect: to.redirectedFrom?.path ?? to.path } }
+    return {
+      name: 'Login',
+      query: { redirect: to.redirectedFrom?.path ?? to.path },
+    }
   }
 }
 
@@ -205,7 +206,7 @@ router.beforeEach(async (to, from) => {
     try {
       const user =
         await authenticationManager.userManager.signinRedirectCallback()
-      if ( user.state ) redirect = user.state.toString()
+      if (user.state) redirect = user.state.toString()
     } catch (error) {
       console.error(error)
     }
@@ -221,7 +222,7 @@ router.beforeEach(async (to, from) => {
     routesAreInitialized = true
     if (redirect) {
       return redirect
-    } else if(to.path === '/about' && from.path === '/') {
+    } else if (to.path === '/about' && from.path === '/') {
       return from
     } else {
       return to