diff --git a/src/app/pages/App.jsx b/src/app/pages/App.jsx index 0df840d..bb26505 100644 --- a/src/app/pages/App.jsx +++ b/src/app/pages/App.jsx @@ -3,7 +3,7 @@ import { BrowserRouter, Switch, Route, Redirect, } from 'react-router-dom'; -import { isAuthanticated } from '../../client/state/auth'; +import { isAuthenticated } from '../../client/state/auth'; import Auth from '../templates/auth/Auth'; import Client from '../templates/client/Client'; @@ -13,13 +13,13 @@ function App() { - { isAuthanticated() ? : } + { isAuthenticated() ? : } - { isAuthanticated() ? : } + { isAuthenticated() ? : } - { isAuthanticated() ? : } + { isAuthenticated() ? : } diff --git a/src/client/state/auth.js b/src/client/state/auth.js index c919f64..fbc23f6 100644 --- a/src/client/state/auth.js +++ b/src/client/state/auth.js @@ -4,7 +4,7 @@ function getSecret(key) { return localStorage.getItem(key); } -const isAuthanticated = () => getSecret(cons.secretKey.ACCESS_TOKEN) !== null; +const isAuthenticated = () => getSecret(cons.secretKey.ACCESS_TOKEN) !== null; const secret = { accessToken: getSecret(cons.secretKey.ACCESS_TOKEN), @@ -14,6 +14,6 @@ const secret = { }; export { - isAuthanticated, + isAuthenticated, secret, };