Revize a12a4e99
Přidáno uživatelem plundrichov před více než 4 roky(ů)
client/src/App.js | ||
---|---|---|
15 | 15 |
function App() { |
16 | 16 |
|
17 | 17 |
useEffect(() => { |
18 |
if (window.location.pathname === '/login') return; |
|
18 |
if (window.location.pathname === '/login' || window.location.pathname === '/logout') return;
|
|
19 | 19 |
|
20 | 20 |
api_fetch.getCurrentProfile().then(currentProfile => { |
21 | 21 |
setCurrentUser(currentProfile); |
Také k dispozici: Unified diff
re #58 mostly css edited, also login/logout