From d6d1b0eeef7307a2931dd48d50aede0b318a36f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Tue, 14 Sep 2021 09:30:37 +0200 Subject: [PATCH] Fix typo MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- src/app/pages/App.jsx | 8 ++++---- src/client/state/auth.js | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) 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, };