diff --git a/src/api/users.tsx b/src/api/users.tsx index 72053aa..2fdd53a 100644 --- a/src/api/users.tsx +++ b/src/api/users.tsx @@ -1,7 +1,7 @@ export async function me() { const token = localStorage.getItem('token') - if(!token) { + if (!token) { throw new Error('Token not found') } diff --git a/src/layouts/navigation.tsx b/src/layouts/navigation.tsx index 649c119..64bff4f 100644 --- a/src/layouts/navigation.tsx +++ b/src/layouts/navigation.tsx @@ -52,7 +52,13 @@ export default function Navigation(): ReactElement { - { setToken(null) }}> + { + setToken(null) + }} + > Sign out