From 3ef99aebfef918c13017b6276c394232252e7b57 Mon Sep 17 00:00:00 2001 From: "theis.gaedigk" Date: Tue, 22 Jul 2025 21:15:10 +0200 Subject: [PATCH] re formatted code --- backend/services/database.js | 2 +- client/src/utils/functions.ts | 4 ++-- client/src/utils/useUsers.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/services/database.js b/backend/services/database.js index 057734c..d9e7167 100644 --- a/backend/services/database.js +++ b/backend/services/database.js @@ -139,4 +139,4 @@ export async function getAllUsers() { } catch (err) { return { result: err, success: false }; } -} \ No newline at end of file +} diff --git a/client/src/utils/functions.ts b/client/src/utils/functions.ts index 70a2300..8af4362 100644 --- a/client/src/utils/functions.ts +++ b/client/src/utils/functions.ts @@ -6,7 +6,7 @@ export const greeting = () => { export const logout = () => { Cookies.remove("name"); - Cookies.remove("token"); + Cookies.remove("token"); localStorage.removeItem("users"); window.location.reload(); -}; \ No newline at end of file +}; diff --git a/client/src/utils/useUsers.ts b/client/src/utils/useUsers.ts index f6006e0..4b04f30 100644 --- a/client/src/utils/useUsers.ts +++ b/client/src/utils/useUsers.ts @@ -26,4 +26,4 @@ export function useUsers(): User[] { }, []); return users; -} \ No newline at end of file +}